Hi, all.
I found a strange issue happens on Mac, not sure it's a bug or not.
Say I map a shortcut to TestEcho function, they looks like these in the .vimrc
file.
nmap <C-@>f :echo TestEcho()<CR>
function! TestEcho()
let v = winsaveview()
try
return "foobar"
finally
call winrestview(v)
endtry
endfunction
Then I open a vim, and trigger the shortcut, I can see "foobar" in the status
line.
However when I use MacVim, the status line shows nothing.
In my expectation, the MacVim should act as what vim does. So I checkout the
latest source code, and found this line of code makes the difference.
https://github.com/b4winckler/macvim/blob/master/src/window.c#L5807
Anyone knows the reason of this magic?
--
--
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_mac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.