wincmd and \n does not work for me
Closed this issue · 3 comments
Hi,
I tried your plugin and I'm thrilled! I found small glitch though. When I recover a file, I can see in the command line this text with cursor waiting for input at the end.
:wincmd l:0
'feedkeys' help says: feedkeys("") simulates pressing of the key
Changing for example feedkeys(":wincmd l\n", 't') into feedkeys(":wincmd l", 't') fixes the issue for me. There is a lot of feedkeys through the plugin and for example the ones DiffRecoveredFileOld seems to work fine to me. But it seems that it won't do any harm fixing all of those according to documentation.
Thank you
__
Vlad
What operating system are you using and what Vim version?
I think, you need to use feedkeys("...)" (note the backspace). I have just updated the plugin. See, if this works for you.
Haha, the markup language used on github has bitten us both :) In my example I used <CR> and so probably did you. Markup has eaten the backslash I guess. Anyway your change fixed the issue for me.
Thank you!
Vlad