Branch: refs/heads/master Author: Eugene Arshinov earshinov@gmail.com Committer: elextr elextr@gmail.com Date: Sun, 21 Apr 2013 01:45:09 UTC Commit: e8443b19f7a6230c8a4f68058f8b1b0175325fc0 https://github.com/geany/geany/commit/e8443b19f7a6230c8a4f68058f8b1b0175325f...
Log Message: ----------- rewrite_reflow: Remove a check inside line breaking implementation that caused breaking to occur too early
Modified Paths: -------------- src/editor.c
Modified: src/editor.c 8 files changed, 3 insertions(+), 5 deletions(-) =================================================================== @@ -551,19 +551,17 @@ static void on_update_ui(GeanyEditor *editor, G_GNUC_UNUSED SCNotification *nt) }
-static void check_line_breaking(GeanyEditor *editor, gint pos, gchar c) +static void check_line_breaking(GeanyEditor *editor, gint pos) { ScintillaObject *sci = editor->sci; gint line, lstart, col; + gchar c;
if (!editor->line_breaking) return;
col = sci_get_col_from_position(sci, pos);
- if (c == GDK_space) - pos--; /* Look for previous space, not the new one */ - line = sci_get_current_line(sci);
lstart = sci_get_position_from_line(sci, line); @@ -824,7 +822,7 @@ static void on_char_added(GeanyEditor *editor, SCNotification *nt) editor_start_auto_complete(editor, pos, FALSE); #endif } - check_line_breaking(editor, pos, nt->ch); + check_line_breaking(editor, pos); }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).