Kaydet (Commit) 6e2c511e authored tarafından Enrico Tröger's avatar Enrico Tröger

(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
üst 9fe2718a
......@@ -303,7 +303,8 @@ void sci_cb_close_block(ScintillaObject *sci, gint pos)
if (isspace(line_buf[x])) cnt++;
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);
/* geany_debug("pos: %d, start: %d char: %c start_line: %d", pos, start_brace,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment