From b317565ea55511f59336793467df2ba3f4384bf9 Mon Sep 17 00:00:00 2001 From: fox0430 Date: Tue, 3 Aug 2021 02:05:59 +0900 Subject: [PATCH] Fix #1415 --- src/moepkg/visualmode.nim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/moepkg/visualmode.nim b/src/moepkg/visualmode.nim index f58e39fb4..7bc3200c1 100644 --- a/src/moepkg/visualmode.nim +++ b/src/moepkg/visualmode.nim @@ -121,11 +121,14 @@ proc deleteBuffer(bufStatus: var BufferStatus, elif area.startColumn > 0: area.startColumn - 1 else: 0 + windowNode.currentColumn = column windowNode.expandedColumn = column inc(bufStatus.countChange) + bufStatus.isUpdate = true + proc deleteBufferBlock(bufStatus: var BufferStatus, registers: var Registers, windowNode: WindowNode, @@ -158,8 +161,11 @@ proc deleteBufferBlock(bufStatus: var BufferStatus, windowNode.currentLine = min(area.startLine, bufStatus.buffer.high) windowNode.currentColumn = area.startColumn + inc(bufStatus.countChange) + bufStatus.isUpdate = true + proc addIndent(bufStatus: var BufferStatus, windowNode: WindowNode, area: SelectArea,