far2l icon indicating copy to clipboard operation
far2l copied to clipboard

Selection not cleared in editor

Open faerot opened this issue 1 year ago • 3 comments

Sometimes when you click between the edges of the line, when mouse press happens on one line and mouse release on another line, you get this:

image

One line is selected, another is just visual artifact, i.e. if pressed Ctrl+D to delete selected block, you get:

image

The "selection" clears only after that line is redrawn. Not that I use mouse a lot in editor, it mostly happens when tring to re-focus back to far2l window, which is annoying.

faerot avatar Oct 30 '24 10:10 faerot

Correction: it is not just visual artifact, this is actual selection part, because when typing over remaining selected block it wipes that block.

faerot avatar Oct 30 '24 15:10 faerot

@faerot it seems to be an undocumented feature triggered when shift is pressed, see https://github.com/elfmz/far2l/blob/b863878f4eebeac2c29b9fd5a7da9671720dd8ff/far2l/src/editor.cpp#L2725

exkrexpexfex avatar Jul 29 '25 21:07 exkrexpexfex

yep, its a quick adhoc copy into clipboard without affecting cursor position, also works in viewer

elfmz avatar Sep 24 '25 07:09 elfmz