Skip to content

Commit

Permalink
Fix #15
Browse files Browse the repository at this point in the history
  • Loading branch information
wvffle committed Oct 31, 2020
1 parent c6092b9 commit e2adb03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

### Commits

- Add lockfile
- Add tests and fix REPL mode completion
- Add testing environment
- Add french translation
Expand Down
2 changes: 1 addition & 1 deletion src/input-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ input._listener = async function (ch, key) {
}

// eslint-disable-next-line
if (!handled && !/^[\x00-\x08\x0b-\x0c\x0e-\x1f\x7f]$/.test(ch)) {
if (!handled && ch && !/^[\x00-\x08\x0b-\x0c\x0e-\x1f\x7f]$/.test(ch)) {
this.value = value.slice(0, cursor) + ch + value.slice(cursor)
cursor += 1
}
Expand Down

0 comments on commit e2adb03

Please sign in to comment.