From baa88de7078fbbd088bdc4a722a5873191a04750 Mon Sep 17 00:00:00 2001 From: elextr Date: Fri, 28 Dec 2018 16:02:49 +1000 Subject: [PATCH] Fix broken line breaking on existing lines sci_get_position_from_col() takes line number, not position of start of line. --- src/editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor.c b/src/editor.c index e7122062..fb0b9d04 100644 --- a/src/editor.c +++ b/src/editor.c @@ -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) {