In vim command-mode, only eat insertion keys, not other modifiers

This commit is contained in:
Nathan Sobo
2012-01-13 14:23:58 -08:00
parent a7e8246de0
commit b4886bb6d6
2 changed files with 9 additions and 3 deletions

View File

@@ -18,9 +18,9 @@ class VimMode
setupCommandMode: ->
atom.bindKeys '.command-mode', (e) ->
if e.keystroke.match /\d/
if e.keystroke.match /^\d$/
return 'command-mode:numeric-prefix'
if e.keystroke.match /./
if e.keystroke.match /^.$/
return false
@bindCommandModeKeys