far2l icon indicating copy to clipboard operation
far2l copied to clipboard

Editor: broken selection with Shift+Up

Open akruphi opened this issue 1 month ago • 3 comments

If file has tab or wide symbols, selection by Shift+Up broken now: Image

May be problem origin in double

CurPos = CurLine->RealPosToCell(CurPos);

in editor.cpp in line 2116 and then in else in line 2135 https://github.com/elfmz/far2l/blob/f6711046421379b7cc5df549473758ae3fd01ab7/far2l/src/editor.cpp#L2116-L2141

RealPosToCell( in line 2116 was added in https://github.com/elfmz/far2l/commit/03bb65fc43231ee3ad8e06f4254bf6111f483ab7 by @unxed

akruphi avatar Dec 07 '25 07:12 akruphi

Try removing CurPos = CurLine->RealPosToCell(CurPos);. Looks like it was added due to a mistake.

unxed avatar Dec 13 '25 00:12 unxed

Try removing CurPos = CurLine->RealPosToCell(CurPos);. Looks like it was added due to a mistake.

Thank you for reply. @unxed if you sure, please do PR with fix.

akruphi avatar Dec 13 '25 06:12 akruphi

Thank you for reply. @unxed if you sure, please do PR with fix.

#3151

unxed avatar Dec 13 '25 12:12 unxed