pkulchenko / ZeroBraneStudio

Lightweight Lua-based IDE for Lua with code completion, syntax highlighting, live coding, remote debugger, and code analyzer; supports Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and other Lua interpreters on Windows, macOS, and Linux
http://studio.zerobrane.com/
Other
2.6k stars 519 forks source link

Paste single line in case of rectangle selection #1123

Closed moteus closed 2 years ago

moteus commented 2 years ago

Lets say clipboard contains some text e.g. aaa and text editor has lines like

123456
123456

Then if create rectangle selection with zero width (put cursor at the beging of document) and press Alt-Shit-Down and then do past from clipboard (e.g. press Ctrl-V) the result text will be

aaa23456
aaa23456

Note of missing the 1 symbol in each line.

pkulchenko commented 2 years ago

Indeed, although it appears to be a Scintilla issue, as I don't see any handling of the rectangular selection in the IDE itself. I'll think of a workaround and am open to suggestions. I was thinking about adding a "fake" character, but it's not a good idea in case this issue gets fixed (or is already fixed in some later version of Scintilla).

moteus commented 2 years ago

But there no such effect in the SciTE text editor. (I have 3.5 and 5.11 versions) By the way is there any plans to update scintilla versioin?

pkulchenko commented 2 years ago

There is nothing newer available wxwidgets unfortunately. I pushed several times to get a new version incorporated, but it hasn't happened yet.

I'll check again if there is anything happening in the IDE itself, but so far I don't see it. Maybe it was specific to the version of Scintilla we were using...

pkulchenko commented 2 years ago

Found the problem; should be fixed now. Thank you for the report!