Skip to content

Commit

Permalink
Revert "Fix #287"
Browse files Browse the repository at this point in the history
This reverts commit f7c3583.
  • Loading branch information
fox0430 committed May 14, 2019
1 parent f7c3583 commit 01d9d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/moepkg/visualmode.nim
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ proc yankBuffer(status: var EditorStatus, area: SelectArea) =
status.registers.yankedLines.add(status.bufStatus[status.currentBuffer].buffer[i])

proc deleteBuffer(status: var EditorStatus, area: SelectArea) =
if status.bufStatus[status.currentBuffer].buffer[status.bufStatus[status.currentBuffer].currentLine].len < 1: return
if status.bufStatus[status.currentBuffer].buffer.len == 1 and status.bufStatus[status.currentBuffer].buffer[status.bufStatus[status.currentBuffer].currentLine].len < 1: return
yankBuffer(status, area)

for i in area.startLine .. area.endLine:
Expand Down

0 comments on commit 01d9d9a

Please sign in to comment.