(hopefully) fixed a bug with auto indention and CR/LF line endings
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@156 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
9fe2718a33
commit
6e2c511e20
@ -303,7 +303,8 @@ void sci_cb_close_block(ScintillaObject *sci, gint pos)
|
|||||||
if (isspace(line_buf[x])) cnt++;
|
if (isspace(line_buf[x])) cnt++;
|
||||||
x++;
|
x++;
|
||||||
}
|
}
|
||||||
if ((line_len + (!eol_char_len) - 2) != cnt) return;
|
//geany_debug("line_len: %d eol: %d cnt: %d", line_len, eol_char_len, cnt);
|
||||||
|
if ((line_len - eol_char_len - 1) != cnt) return;
|
||||||
|
|
||||||
if (start_brace >= 0) sci_cb_get_indent(sci, start_brace, TRUE);
|
if (start_brace >= 0) sci_cb_get_indent(sci, start_brace, TRUE);
|
||||||
/* geany_debug("pos: %d, start: %d char: %c start_line: %d", pos, start_brace,
|
/* geany_debug("pos: %d, start: %d char: %c start_line: %d", pos, start_brace,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user