Fix wrong snippet indentation when original cursor line has

non-indentation whitespace (patch by david, thanks).



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5397 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2010-11-11 13:27:34 +00:00
parent 80799825bd
commit 3c558f52c5
2 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,9 @@
* src/document.c:
Display better error messages when saving a document fails (patch by
Dimitar Zhekov, thanks).
* src/editor.c:
Fix wrong snippet indentation when original cursor line has
non-indentation whitespace (patch by david, thanks).
2010-11-10 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>

View File

@ -2729,6 +2729,8 @@ static gsize count_indent_size(GeanyEditor *editor, const gchar *base_indent)
case '\t':
count += tab_size;
break;
default:
return count;
}
}
return count;