All pastes #971037 Raw Edit

Untitled

public text v1 · immutable
·published 2008-04-04 13:43 UTC
rendered paste body

Index: src/undo.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/sylpheed-claws/src/undo.c,v
retrieving revision 1.13.2.14
diff -u -p -r1.13.2.14 undo.c
--- src/undo.c	2007/07/11 16:34:20	1.13.2.14
+++ src/undo.c	2008/04/04 13:42:33
@@ -368,7 +368,7 @@ void undo_undo(UndoMain *undostruct) 
 	gtk_adjustment_set_value
 		(GTK_ADJUSTMENT(textview->vadjustment),
 		 undoinfo->window_position);
-
+	
 	switch (undoinfo->action) {
 	case UNDO_ACTION_DELETE:
 		gtk_text_buffer_get_iter_at_offset(buffer, &iter, undoinfo->start_pos);
@@ -386,8 +386,6 @@ void undo_undo(UndoMain *undostruct) 
 		/* "pull" another data structure from the list */
 		undoinfo = (UndoInfo *)undostruct->undo->data;
 		g_return_if_fail(undoinfo != NULL);
-		undostruct->redo = g_list_prepend(undostruct->redo, undoinfo);
-		undostruct->undo = g_list_remove(undostruct->undo, undoinfo);
 		g_return_if_fail(undoinfo->action == UNDO_ACTION_REPLACE_DELETE);
 		gtk_text_buffer_insert(buffer, &start_iter, undoinfo->text, -1);
 		break;
@@ -398,7 +396,7 @@ void undo_undo(UndoMain *undostruct) 
 		g_assert_not_reached();
 		break;
 	}
-
+	
 	undostruct->change_state_func(undostruct,
 				      UNDO_STATE_UNCHANGED, UNDO_STATE_TRUE,
 				      undostruct->change_state_data);