Fix removing indent spaces after switching back to tab indenting.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1531 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2007-05-14 13:06:18 +00:00
parent cc3d26df71
commit f8eddeb70a
2 changed files with 4 additions and 2 deletions

View File

@ -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@btinternet.com>

View File

@ -199,8 +199,8 @@ void document_apply_update_prefs(gint idx)
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);