Skip to content

Commit

Permalink
Fix error A-j is not a known key
Browse files Browse the repository at this point in the history
Work towards #589
  • Loading branch information
gerardroche committed Jun 16, 2019
1 parent bcfeeff commit 8dfc949
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -4,6 +4,7 @@ All notable changes are documented in this file using the [Keep a CHANGELOG](htt

## 1.16.3 - Unreleased

* Fixed [#589](https://github.com/NeoVintageous/NeoVintageous/issues/589): error `'A-j'` is not a known key
* Fixed [#587](https://github.com/NeoVintageous/NeoVintageous/issues/587): `:wall` should only save dirty views

## 1.16.2 - 2019-06-14
Expand Down
5 changes: 4 additions & 1 deletion nv/mappings.py
Expand Up @@ -61,7 +61,10 @@ def _find_full_match(mode, lhs):

def _normalise_lhs(lhs):
# type: (str) -> str
return ''.join(KeySequenceTokenizer(expand_keys(lhs)).iter_tokenize())
try:
return ''.join(KeySequenceTokenizer(expand_keys(lhs)).iter_tokenize())
except ValueError:
return lhs


def mappings_add(mode, lhs, rhs):
Expand Down

0 comments on commit 8dfc949

Please sign in to comment.