Skip to content
This repository was archived by the owner on Apr 6, 2018. It is now read-only.

Commit c23873b

Browse files
committed
fix copy&paste oversight
1 parent 74ab580 commit c23873b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/vim-state.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ class VimState
419419
cursor.moveLeft() unless cursor.isAtBeginningOfLine()
420420

421421
interruptInsertMode: ->
422-
return unless @mode in [null, 'insert']
422+
return unless @mode is 'insert'
423423
@editor.groupChangesSinceCheckpoint(@insertionCheckpoint)
424424
@insertionCheckpoint = null
425425
transaction = _.last(@editor.buffer.history.undoStack)

0 commit comments

Comments
 (0)