Jean-Marc Lasgouttes wrote: > Juergen> Jean-Marc Lasgouttes wrote: >>> The test is bogus, you should pass true to selHandle, or merge >>> LFUN_ENDBUFSEL and LFUN_ENDBUF. > > Juergen> true, I justed missed the rationale of the test. The attached > Juergen> is better, of course. > > I went further and cleaned up the code (by merging all the SEL and > non-SEL cases). I like the result better, but my testing has been > light. > > What do you think?
I tested it a bit too (without change tracking), and could not trigger any crash. What I noticed was that I was able to leave empty lines, but I don't know whether that is related: create an empty line after a paragraph. Select something by pressing shift and up arrow. Then click somewhere else with the mouse to unset the selection -> the empty line stays until you go to it again and leave it without selection. Georg