From 4ff082927ebee01931de2c7583cf0b8f86f2926f Mon Sep 17 00:00:00 2001 From: Peter Odding Date: Wed, 11 May 2011 22:14:22 +0200 Subject: Use xolox#misc#os#is_win() instead of multiple has() expressions --- autoload/xolox/easytags.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'autoload') diff --git a/autoload/xolox/easytags.vim b/autoload/xolox/easytags.vim index 15d63f7..9ed06ec 100644 --- a/autoload/xolox/easytags.vim +++ b/autoload/xolox/easytags.vim @@ -1,6 +1,6 @@ " Vim script " Author: Peter Odding -" Last Change: April 23, 2011 +" Last Change: May 6, 2011 " URL: http://peterodding.com/code/vim/easytags/ let s:script = expand(':p:~') @@ -317,7 +317,7 @@ function! xolox#easytags#write_tagsfile(tagsfile, headers, entries) " {{{2 call sort(a:entries, 1) endif let lines = [] - if has('win32') || has('win64') + if xolox#misc#os#is_win() " Exuberant Ctags on Windows requires \r\n but Vim's writefile() doesn't add them! for line in a:headers call add(lines, line . "\r") -- cgit v1.2.3