Skip to content

Commit

Permalink
Merge pull request #1416 from fox0430/fix#1415
Browse files Browse the repository at this point in the history
Fix #1415
  • Loading branch information
fox0430 authored Aug 2, 2021
2 parents d7a5322 + b317565 commit 8a08bd3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/moepkg/visualmode.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 8a08bd3

Please sign in to comment.