From 61a0c2379513cbc36effb50e3c7beb5e934e28a0 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 25 Jul 2014 01:05:58 +0400 Subject: [PATCH] strlen cannot be less than zero --- .vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5