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:
parent
74d5144892
commit
28a50c00bb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user