misfo / jim

Vim mode for Ace (Github & Cloud9's editor)
http://misfo.github.com/jim
MIT License
65 stars 3 forks source link

Jim's state should jive with mouse clicks/selections #4

Closed misfo closed 13 years ago

misfo commented 13 years ago

Jim is not taking into account any mouse events that may have happened between the current keystroke and the last. So it will do unexpected things if the user selects some text, for example, and then tries to do a visual mode command.

Either the mouse events need to be hooked into or some sanity checks need to be made at the beginning of each key event. The latter is probably a better option so the plugin will stay as close to a keybinding as possible.