]> git.phdru.name Git - dotfiles.git/commitdiff
strlen cannot be less than zero
authorOleg Broytman <phd@phdru.name>
Thu, 24 Jul 2014 21:05:58 +0000 (01:05 +0400)
committerOleg Broytman <phd@phdru.name>
Thu, 24 Jul 2014 21:05:58 +0000 (01:05 +0400)
.vimrc

diff --git a/.vimrc b/.vimrc
index eee8502433d658340bd2c56f349e51e7c33daaf1..f7404f702f8ec8eb550357bdc8b25dbad9188a41 100644 (file)
--- 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