[geany/geany] f47bae: Fix broken line breaking on existing lines

elextr git-noreply at xxxxx
Wed Jan 2 22:17:59 UTC 2019


Branch:      refs/heads/1.34
Author:      elextr <elextr at gmail.com>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Wed, 02 Jan 2019 22:17:59 UTC
Commit:      f47bae101f426b3dadad3e6c0e3858dde6ae9d52
             https://github.com/geany/geany/commit/f47bae101f426b3dadad3e6c0e3858dde6ae9d52

Log Message:
-----------
Fix broken line breaking on existing lines

sci_get_position_from_col() takes line number, not position of start of line.


Modified Paths:
--------------
    src/editor.c

Modified: src/editor.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -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)
 	{



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list