Fix broken line breaking on existing lines

sci_get_position_from_col() takes line number, not position of start of line.
This commit is contained in:
elextr 2018-12-28 16:02:49 +10:00 committed by GitHub
parent 4452b365bf
commit baa88de707
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -556,7 +556,7 @@ static void check_line_breaking(GeanyEditor *editor, gint pos)
return;
/* look for the last space before line_break_column */
pos = sci_get_position_from_col(sci, lstart, get_project_pref(line_break_column));
pos = sci_get_position_from_col(sci, line, get_project_pref(line_break_column));
while (pos > lstart)
{