rkitover / vimpager

Use Vim as PAGER
http://www.vim.org/scripts/script.php?script_id=1723
Other
769 stars 72 forks source link

"git diff" freezes under zsh on macOS 13.0.x #268

Closed rnhurt closed 1 year ago

rnhurt commented 1 year ago

I'm seeing an issue with vimpager, zsh, and git. Trying to do a git diff with vimpager set as my $PAGER causes the output to halt completely. I have to CTRL-Z and kill the job to get my shell back.

Steps

  1. set PAGER: export PAGER=vimpager
  2. Get diff: git diff .
  3. Notice the shell freezes and the prompt never comes back
  4. Kill the diff: <CTRL-Z>; kill %1
  5. set PAGER: export PAGER=
  6. Get diff: git diff .
  7. Notice that you get the diff you expected and the prompt comes back as normal

Config

rnhurt commented 1 year ago

Ah, I think I found the problem. I originally compiled the project with no config at all, and it picked up the dash shell. Recompiling with POSIX_SHELL=zsh seemed to fix the problem I was having with git.