sjbach / lusty

LustyExplorer / LustyJuggler for Vim
http://www.vim.org/scripts/script.php?script_id=1890
256 stars 30 forks source link

LustyJuggler: Key mappings are not always reset properly #89

Closed lmeijvogel closed 11 years ago

lmeijvogel commented 11 years ago

Hi,

sometimes, keymappings are not reset properly (when pressing the wrong keys when LJ is open).

The first commit adds some extra cancel keys.

The second commit extracts methods for the default_cancel_keys and alpha_buffer_keys for all keyboard mappings. It then subtracts them when necessary. This way, the cancel key mappings should always be correct.

I could not get the test suite to work, though: I don't know what to do with the 'expect' command.

sjbach commented 11 years ago

Merged - thanks! The test suite passes. FYI, run-tests.bash should automate all the expect interaction. You may have difficulty running it on non-Linux, though.