dkprice / vim-easygrep

Fast and Easy Find and Replace Across Multiple Files
The Unlicense
325 stars 47 forks source link

Have to manually refresh (^L) after Grep with no matches #45

Closed jpmv27 closed 7 years ago

jpmv27 commented 7 years ago

Only happens on console vim, gvim is OK

After entering the Grep command, the screen is cleared, there are four lines of "[EasyGrep] Warning:", followed by "Press ENTER or type command to continue"

After pressing enter, only three lines from the buffer are redrawn at the top of the screen, the rest is blank. Restored to normal by ^L or :redraw! but NOT :redraw

Fixed by changing redraw to redraw! at line 2850 of plugin/EasyGrep.vim

I don't understand why all the redraws are required, so I'm unsure whether that is a reasonable fix.

dkprice commented 7 years ago

redraw is a big hammer but it seems appropriate. Thanks for fixing!