chrisbra / Recover.vim

A Plugin to show a diff, whenever recovering a buffer
http://www.vim.org/scripts/script.php?script_id=3068
247 stars 25 forks source link

Don't call uname on non-Unix system. #62

Closed jottkaerr closed 5 years ago

jottkaerr commented 5 years ago

To check if the current OS is Linux autoload/recover.vim executes system('uname') and checks its result against 'linux'. On Windows this leads to flickering on the task bar, because vimrun.exe is called and Windows creates a task bar button for it. We can prevent the flickering by checking for has("unix") first.

chrisbra commented 5 years ago

thanks!