Quoting Evan Laforge <qdunkan@gmail.com> on darcs-users:
Actually it's xterm on linux. I *think* I saw it on iterm2 on OS X as
well. It doesn't happen with 2.10.1, and does with 2.12.5.
My guess it that it has to do with how darcs prompts put the terminal
into raw mode, then vim of course uses raw mode, somehow the state
saving and restoring gets messed up when you ^Z out and fg back in.
It's easy for me to reproduce:
Record changes in darcs 2.12.5, then say yes to "add a long comment"
where EDITOR=vim. Now ^Z out of vim, and then fg back. At that
point, vim is in command mode, but any keys just appear literally on
the screen, so there's no way to save or quit or do anything. The
only way out is to kill vim from another terminal, at which point
darcs finishes the record (I guess it doesn't mind that vim return
nonzero?).
|