Closed tali closed 6 years ago
Hello. I am able to reproduce this error in the following way.
Open a new file. add a new line. add a new line. add a closing bracket or paren ) } move key cursor to bracket/paren. enter normal mode. hit parentheses (bracket matcher). Error occurs.
Seems this error occurs only when there is an unmatched closing bracket and a new line at the beginning of the file.
I have forked the repo and added a fix. Open for review here: https://github.com/atom/vim-mode/pull/848
As stated in the README, this package is no longer maintained and is deprecated. We recommend that people use the vim-mode-plus package instead. Because of this, we are archiving this repository and closing all issues and pull requests. Thanks very much for your support and contributions!
[Enter steps to reproduce below:]
I cannot reproduce it any more. I was playing with vim-mode and markdown-preview and updated to the latest Atom (now 0.179.0) and vim-mode (now 0.31.0). Maybe it was related to some inconsistent state caused by upgrading atom or the vim-mode package.
What I remember:
I hope the stack trace still helps to find some bugs :-)
Atom Version: 0.179.0 System: Mac OS X 10.10.2 Thrown From: vim-mode package, v0.31.0
Stack Trace
Uncaught TypeError: Cannot read property 'length' of undefined
Commands
Config
Installed Packages