2006-03-27 [colin] 2.0.0cvs178
authorColin Leroy <colin@colino.net>
Mon, 27 Mar 2006 17:59:48 +0000 (17:59 +0000)
committerColin Leroy <colin@colino.net>
Mon, 27 Mar 2006 17:59:48 +0000 (17:59 +0000)
* src/undo.c
Fix undoing by blocks with spaces

ChangeLog
PATCHSETS
configure.ac
src/undo.c

index fe0578f..7fbdeb2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-03-27 [colin]     2.0.0cvs178
+
+       * src/undo.c
+               Fix undoing by blocks with spaces
+
 2006-03-27 [colin]     2.0.0cvs177
 
        * src/textview.c
index 470bf7e..d68d6df 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.382.2.256 -r 1.382.2.257 src/compose.c;  ) > 2.0.0cvs175.patchset
 ( cvs diff -u -r 1.395.2.188 -r 1.395.2.189 src/summaryview.c;  ) > 2.0.0cvs176.patchset
 ( cvs diff -u -r 1.96.2.104 -r 1.96.2.105 src/textview.c;  ) > 2.0.0cvs177.patchset
+( cvs diff -u -r 1.13.2.7 -r 1.13.2.8 src/undo.c;  ) > 2.0.0cvs178.patchset
index 911e616..cf47528 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=0
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=177
+EXTRA_VERSION=178
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index e5ae067..9ce75e9 100644 (file)
@@ -241,32 +241,17 @@ static gint undo_merge(GList *list, guint start_pos, guint end_pos,
                        return FALSE;
                } else if (last_undo->start_pos == start_pos) {
                        /* Deleted with the delete key */
-                       if (text[0] != ' ' && text[0] != '\t' &&
-                           (last_undo->text[last_undo->end_pos - last_undo->start_pos - 1] == ' ' ||
-                            last_undo->text[last_undo->end_pos - last_undo->start_pos - 1] == '\t'))
-                               checkit = FALSE;
-
                        temp_string = g_strdup_printf("%s%s", last_undo->text, text);
                        last_undo->end_pos++;
                        g_free(last_undo->text);
                        last_undo->text = temp_string;
                } else {
                        /* Deleted with the backspace key */
-                       if (text[0] != ' ' && text[0] != '\t' &&
-                           (last_undo->text[0] == ' ' ||
-                            last_undo->text[0] == '\t'))
-                               checkit = FALSE;
-
                        temp_string = g_strdup_printf("%s%s", text, last_undo->text);
                        last_undo->start_pos = start_pos;
                        g_free(last_undo->text);
                        last_undo->text = temp_string;
                }
-
-               if (!checkit) {
-                       last_undo->mergeable = FALSE;
-                       return FALSE;
-               }
        } else if (action == UNDO_ACTION_INSERT) {
                if (last_undo->end_pos != start_pos) {
                        last_undo->mergeable = FALSE;