SF.net SVN: geany: [1294] branches/geany-0.10.1
ntrel at users.sourceforge.net
ntrel at xxxxx
Fri Feb 16 16:53:46 UTC 2007
Revision: 1294
http://svn.sourceforge.net/geany/?rev=1294&view=rev
Author: ntrel
Date: 2007-02-16 08:53:45 -0800 (Fri, 16 Feb 2007)
Log Message:
-----------
Set single undo action when stripping trailing spaces.
Modified Paths:
--------------
branches/geany-0.10.1/NEWS
branches/geany-0.10.1/src/document.c
Modified: branches/geany-0.10.1/NEWS
===================================================================
--- branches/geany-0.10.1/NEWS 2007-02-16 16:44:16 UTC (rev 1293)
+++ branches/geany-0.10.1/NEWS 2007-02-16 16:53:45 UTC (rev 1294)
@@ -7,7 +7,8 @@
loaded first.
* Fixed autocompletion missing tag matches.
* Fixed a wrong PASCAL autocompletion.
- * Set single undo action when toggling multiple lines.
+ * Set single undo action when toggling multiple lines or stripping
+ trailing spaces.
* Prevent some possible invalid memory reads.
* Convert config, application and documentation dir paths to locale
encoding before using it.
Modified: branches/geany-0.10.1/src/document.c
===================================================================
--- branches/geany-0.10.1/src/document.c 2007-02-16 16:44:16 UTC (rev 1293)
+++ branches/geany-0.10.1/src/document.c 2007-02-16 16:53:45 UTC (rev 1294)
@@ -1603,6 +1603,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);
@@ -1622,6 +1624,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.
More information about the Commits
mailing list