Branch: refs/heads/master Author: elextr elextr@gmail.com Committer: GitHub noreply@github.com Date: Sun, 18 Nov 2018 09:29:54 UTC Commit: 653b06e07ae99ac75c4eb56dfc23a237243a5dca https://github.com/geany/geany/commit/653b06e07ae99ac75c4eb56dfc23a237243a5d...
Log Message: ----------- Fix line breaking with multibyte characters (#1960)
Fixes #1958
Also replace GDK_space with ASCII space, its searching for that, not the keycode (which just happens to have the same value, lucky).
Modified Paths: -------------- src/editor.c
Modified: src/editor.c 4 lines changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -556,12 +556,12 @@ static void check_line_breaking(GeanyEditor *editor, gint pos) return;
/* look for the last space before line_break_column */ - pos = MIN(pos, lstart + get_project_pref(line_break_column)); + pos = sci_get_position_from_col(sci, lstart, get_project_pref(line_break_column));
while (pos > lstart) { c = sci_get_char_at(sci, --pos); - if (c == GDK_space) + if (c == ' ') { gint diff, last_pos, last_col;
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).