Revision: 1293 http://svn.sourceforge.net/geany/?rev=1293&view=rev Author: ntrel Date: 2007-02-16 08:44:16 -0800 (Fri, 16 Feb 2007)
Log Message: ----------- Set single undo action when using document_strip_trailing_spaces().
Modified Paths: -------------- trunk/ChangeLog trunk/src/document.c
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2007-02-16 16:38:23 UTC (rev 1292) +++ trunk/ChangeLog 2007-02-16 16:44:16 UTC (rev 1293) @@ -4,6 +4,8 @@ Rename sci_get_line_end_from_position() with line argument, not position. Don't autocomplete for/if constructs when editing an existing line. + * src/src/document.c: + Set single undo action when using document_strip_trailing_spaces().
2007-02-15 Enrico Tröger enrico.troeger@uvena.de
Modified: trunk/src/document.c =================================================================== --- trunk/src/document.c 2007-02-16 16:38:23 UTC (rev 1292) +++ trunk/src/document.c 2007-02-16 16:44:16 UTC (rev 1293) @@ -1632,6 +1632,8 @@ gint max_lines = sci_get_line_count(doc_list[idx].sci); gint line;
+ sci_start_undo_action(doc_list[idx].sci); + for (line = 0; line < max_lines; line++) { gint line_start = sci_get_position_from_line(doc_list[idx].sci, line); @@ -1651,6 +1653,7 @@ sci_target_replace(doc_list[idx].sci, "", FALSE); } } + sci_end_undo_action(doc_list[idx].sci); }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.