From 1a2d1469d3a4b3709f4fcaa8e7cc838ccd8bb0ac Mon Sep 17 00:00:00 2001 From: Andrew Kovalenko Date: Tue, 20 May 2014 16:57:20 -0700 Subject: [PATCH] fix error related with checking current OS --- plugin/browser-refresh.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugin/browser-refresh.vim b/plugin/browser-refresh.vim index 7bbe91e..9506fbe 100644 --- a/plugin/browser-refresh.vim +++ b/plugin/browser-refresh.vim @@ -36,8 +36,13 @@ endif let g:loaded_browserrefresh = 1 " Scoot if not in mac -if !has("mac") +if !has("unix") finish +else + if !system('uname')=~'Darwin' + echo "Sorry, now it works only for mac" + finish + endif endif " Set to all if a default browser isn't set