From: Oleg Broytman Date: Thu, 24 Jul 2014 21:05:58 +0000 (+0400) Subject: strlen cannot be less than zero X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=61a0c2379513cbc36effb50e3c7beb5e934e28a0;p=dotfiles.git strlen cannot be less than zero --- diff --git a/.vimrc b/.vimrc index eee8502..f7404f7 100644 --- a/.vimrc +++ b/.vimrc @@ -289,7 +289,7 @@ autocmd BufReadPost * call RestorePosition() function! SetupEncoding(encoding) - if !has("iconv") || exists('b:encoding_set') || strlen(a:encoding) <= 0 + if !has("iconv") || exists('b:encoding_set') || strlen(a:encoding) == 0 return endif