SF.net SVN: geany:[4662] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Sat Feb 13 16:30:17 UTC 2010


Revision: 4662
          http://geany.svn.sourceforge.net/geany/?rev=4662&view=rev
Author:   eht16
Date:     2010-02-13 16:30:09 +0000 (Sat, 13 Feb 2010)

Log Message:
-----------
Strip trailing spaces after reflowing a paragraph, patch by Dominik Wagenfuehr, thanks (closes #2945497).

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/keybindings.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2010-02-13 16:13:00 UTC (rev 4661)
+++ trunk/ChangeLog	2010-02-13 16:30:09 UTC (rev 4662)
@@ -3,6 +3,8 @@
  * src/keybindings.c:
    Add special cases for handling the Select All keybinding (Ctrl-A) in
    the toolbar search and goto line text entries (closes #2948040).
+   Strip trailing spaces after reflowing a paragraph, patch by
+   Dominik Wagenfuehr, thanks (closes #2945497).
 
 
 2010-02-07  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>

Modified: trunk/src/keybindings.c
===================================================================
--- trunk/src/keybindings.c	2010-02-13 16:13:00 UTC (rev 4661)
+++ trunk/src/keybindings.c	2010-02-13 16:30:09 UTC (rev 4662)
@@ -2274,6 +2274,13 @@
 	/* Fix indentation. */
 	for (i = start; i <= start + linescount; i++)
 		sci_set_line_indentation(editor->sci, i, indent);
+
+	/* Remove trailing spaces. */
+	if (editor_prefs.newline_strip || file_prefs.strip_trailing_spaces)
+	{
+		for (i = start; i <= start + linescount; i++)
+			editor_strip_line_trailing_spaces(editor, i);
+	}
 }
 
 


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