aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoload/strip_trailing_whitespace.vim12
1 files changed, 1 insertions, 11 deletions
diff --git a/autoload/strip_trailing_whitespace.vim b/autoload/strip_trailing_whitespace.vim
index f7292b6..a4d4f91 100644
--- a/autoload/strip_trailing_whitespace.vim
+++ b/autoload/strip_trailing_whitespace.vim
@@ -21,7 +21,7 @@ function strip_trailing_whitespace#Strip(start, end) abort
let changed = changed || horizontal > 0
" Return the cursor
- call s:Cursor(line, col)
+ call cursor(line, col)
" Report what changed
let msg = horizontal.' trimmed'
@@ -97,13 +97,3 @@ function s:StripVertical() abort
return stripped
endfunction
-
-" Position the cursor; use cursor() if we have it, :normal if not (Vim 6.0)
-function s:Cursor(line, col) abort
- if exists('*cursor')
- return cursor(a:line, a:col)
- else
- execute 'normal! '.a:line.'G'.a:col.'|'
- return 1
- endif
-endfunction