Beef icon indicating copy to clipboard operation
Beef copied to clipboard

Incorrect cursor position after selecting text and comment toggling

Open Xrayez opened this issue 2 years ago • 0 comments

Beef version: 0.43.4

When selecting text and toggling comments using the "Comment Toggle" shortcut, the cursor position ends up in an incorrect location, suggesting the presence of whitespace characters even though there are none. This situation leads to confusion.

Reproduction:

beef_comment

Uncommenting code with the "Comment Toggle" shortcut doesn't update the cursor position either.

beef_comment_toggle

Note that the commenting issue occurs only when comment toggling does not result in selecting the entire line. To reproduce the problem, move the cursor towards the end of the line using arrow keys and then perform the comment/uncomment action.

Xrayez avatar May 24 '23 10:05 Xrayez