[Github-comments] [geany/geany] Rectangular selection breaks drag and drop on Windows (#2440)

cousteau notifications at xxxxx
Mon Feb 17 10:50:12 UTC 2020


Geany 1.33
Windows 10
Rectangular selection interacts oddly with drag-and-drop.
Steps to reproduce:
1.  Type a large block of text (multiple long lines; Lorem Ipsum or whatever).
2.  Select multiple lines of text _normally_; drag and drop selection: **works as expected**: text is "cut" from original position and "pasted" into destination.
3.  Make _rectangular selection_; drag and drop it: _**FAILS**_: text gets cut correctly, but gets pasted as if regular text had been copied (first line, newline, second line, newline...), breaking the block of text where it was pasted rather than interleaving clipboard and destination lines.
4.  Make _rectangular selection_; _cut/copy_; paste: **works** (lines are interleaved; a block of text is pushed to the right).
5.  Make _rectangular selection_; drag and drop it (_after having copied a rectangular selection_): **now it works**.  Apparently copying a rectangular selection changes the status/behavior of drag-and-drop.
6.  Select multiple lines of text _normally_ (_after having copied a rectangular selection_); drag and drop: _**FAILS**_.  Text lines are cut correctly, but pasted in a rectangular fashion (lines are interleaved).
7.  _Cut/copy_ text _normally_: the original behavior is restored (regular drag-and-drop **works**; rectangular drag-and-drop **_fails_**).

As someone who uses rectangular selection a lot (which seems to work fine on Linux), this is driving me nuts.
(In case this affects anyone else: consider hitting Ctrl-C before dragging and dropping a rectangular selection to change Geany's mode from "regular selection works" to "rectangular selection works"; this is the workaround I'm currently using.)

PS: I currently can't upgrade Geany on this machine, but may try installing it on another computer.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2440
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20200217/9e51b958/attachment.htm>


More information about the Github-comments mailing list