Permalink
Browse files

- Vitalized.

  • Loading branch information...
Shougo committed Jun 21, 2011
1 parent 58c9e6a commit d08cd9ec06191033c8c154c527b91737f7da1cfc
File renamed without changes.
@@ -44,7 +44,7 @@ function! s:strwidthpart(str, width)"{{{
while width > a:width
let char = matchstr(ret, '.$')
let ret = ret[: -1 - len(char)]
- let width -= s:wcwidth(char)
+ let width -= s:wcswidth(char)
endwhile
return ret
@@ -55,7 +55,7 @@ function! s:strwidthpart_reverse(str, width)"{{{
while width > a:width
let char = matchstr(ret, '^.')
let ret = ret[len(char) :]
- let width -= s:wcwidth(char)
+ let width -= s:wcswidth(char)
endwhile
return ret
@@ -66,9 +66,6 @@ if v:version >= 703
function! s:wcswidth(str)"{{{
return strwidth(a:str)
endfunction"}}}
- function! s:wcwidth(str)"{{{
- return strwidth(a:str)
- endfunction"}}}
else
function! s:wcswidth(str)"{{{
if a:str =~# '^[\x00-\x7f]*$'
@@ -1 +1 @@
-6190cd
+217a9e

0 comments on commit d08cd9e

Please sign in to comment.