When typing in a rectangular selection (ie on a vertical column of lines) hits the break column the last line is broken and the vertical selection is destroyed so further typing only happens on that last line.
Until Geany supports discontiguous multiple selections its not possible to continue the multiple typing if all lines are wrapped, so probably best for line breaking to check for multiple selections and not do the break so the users typing continues on all the lines, then they can break manually.
Update, sometimes Geany crashes when typing in a rectangular selection passes the line breaking position (and breaking is on of course).
Some of the [backtrace](https://gist.github.com/elextr/23ddd07162e19df53682a88c6dcee670) . Its clearly in a loop and I got bored typing return.
It doesn't crash every time, other times it behaves as described in the OP.
``` 09:37:23: Geany INFO : Using alternate configuration directory 09:37:23: Geany INFO : Geany 1.35 (git >= 4452b36), en_AU.UTF-8 09:37:23: Geany INFO : GTK 3.18.9, GLib 2.48.2 ``` Empty config that doesn't exist so no plugins and default settings except `Document->Line breaking` of course.
Looks like it loops through `editor.c:check_line_breaking()` inserting a newline causing a changed notification from Scintilla causing a call to `check_line_breaking()` etc. But I can't see why it only crashes sometimes @b4n?
Closed #2051 via #2135.
github-comments@lists.geany.org