[geany/geany] f6b044: Don't perform line breaking in rectangular selection mode (#2135)

Colomban Wendling git-noreply at xxxxx
Sat Apr 27 23:37:18 UTC 2019


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   elextr <elextr at gmail.com>
Date:        Sat, 27 Apr 2019 23:37:18 UTC
Commit:      f6b04480c8b09942da11f4e59f542eddf881ef81
             https://github.com/geany/geany/commit/f6b04480c8b09942da11f4e59f542eddf881ef81

Log Message:
-----------
Don't perform line breaking in rectangular selection mode (#2135)

Doing so drops the rectangular selection, and there is no obvious
correct behavior for line breaking with a rectangular selection.
So, just don't do line breaking in this case.

Fixes #2051.


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

Modified: src/editor.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -540,7 +540,7 @@ static void check_line_breaking(GeanyEditor *editor, gint pos)
 	gint line, lstart, col;
 	gchar c;
 
-	if (!editor->line_breaking)
+	if (!editor->line_breaking || sci_get_selection_mode(editor->sci) != SC_SEL_STREAM)
 		return;
 
 	col = sci_get_col_from_position(sci, pos);



--------------
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