+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
( 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
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;