1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-08-01 15:59:06 +02:00

Move caret one character left while after mouse selection

This commit is contained in:
Alex Plate 2019-04-17 20:33:23 +03:00
parent 74d5144892
commit 28a50c00bb
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F

View File

@ -170,6 +170,11 @@ object VimListenerManager {
logger.debug("Release mouse after dragging")
SelectionVimListenerSuppressor.use {
VimPlugin.getVisualMotion().controlNonVimSelectionChange(event.editor, !isBlockCaret)
event.editor.caretModel.runForEachCaret { caret ->
if (caret.selectionEnd == caret.offset) {
caret.moveToOffset(caret.selectionEnd - 1)
}
}
}
mouseDragging = false