sjbach / lusty

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

Fix restoring of mappings with <SID> in rhs #33

Closed c4rlo closed 13 years ago

c4rlo commented 13 years ago

It turns out that the old, non-dict version of maparg() returns the mapped rhs with "" already translated to the appropriate "(number)_" string, while the "rhs" member of the dict version of maparg() does not. So I'm always using the non-dict version to get the mapped rhs, so that we can properly restore mappings with in the rhs.

sjbach commented 13 years ago

Vim is silly. In any case, thanks for the follow-up patch and for writing a test.