SF.net SVN: geany: [1531] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Mon May 14 13:06:19 UTC 2007


Revision: 1531
          http://svn.sourceforge.net/geany/?rev=1531&view=rev
Author:   ntrel
Date:     2007-05-14 06:06:18 -0700 (Mon, 14 May 2007)

Log Message:
-----------
Fix removing indent spaces after switching back to tab indenting.

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-05-14 12:55:55 UTC (rev 1530)
+++ trunk/ChangeLog	2007-05-14 13:06:18 UTC (rev 1531)
@@ -3,6 +3,8 @@
  * src/filetypes.c, src/filetypes.h:
    Add some menu separators to group filetype menu items.
    Reorder Haskell, O-Matrix, VHDL filetypes.
+ * src/document.c:
+   Fix removing indent spaces after switching back to tab indenting.
 
 
 2007-05-12  Nick Treleaven  <nick.treleaven at btinternet.com>

Modified: trunk/src/document.c
===================================================================
--- trunk/src/document.c	2007-05-14 12:55:55 UTC (rev 1530)
+++ trunk/src/document.c	2007-05-14 13:06:18 UTC (rev 1531)
@@ -199,8 +199,8 @@
 	sci_set_tab_width(sci, app->pref_editor_tab_width);
 
 	sci_set_use_tabs(sci, app->pref_editor_use_tabs);
-	if (! app->pref_editor_use_tabs)
-		SSM(sci, SCI_SETBACKSPACEUNINDENTS, TRUE, 0);	// remove indent spaces on backspace
+	// remove indent spaces on backspace, if using spaces to indent
+	SSM(sci, SCI_SETBACKSPACEUNINDENTS, ! app->pref_editor_use_tabs, 0);
 
 	sci_set_autoc_max_height(sci, app->autocompletion_max_height);
 


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