aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-01 21:47:10 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-01 21:47:10 +1200
commit1f585e421aab20889c8315e93ffc6d196544fd1f (patch)
tree10bace9fab53da7f8f05a37623db04cc2dcdf21c
parentMerge branch 'release/v3.0.0' into develop (diff)
downloadvim-strip-trailing-whitespace-1f585e421aab20889c8315e93ffc6d196544fd1f.tar.gz
vim-strip-trailing-whitespace-1f585e421aab20889c8315e93ffc6d196544fd1f.zip
Rename autoloaded interface function
-rw-r--r--autoload/strip_trailing_whitespace.vim2
-rw-r--r--plugin/strip_trailing_whitespace.vim2
2 files changed, 2 insertions, 2 deletions
diff --git a/autoload/strip_trailing_whitespace.vim b/autoload/strip_trailing_whitespace.vim
index 681016e..f9e9a1e 100644
--- a/autoload/strip_trailing_whitespace.vim
+++ b/autoload/strip_trailing_whitespace.vim
@@ -1,6 +1,6 @@
" Wrapper function to strip both horizontal and vertical trailing whitespace,
" return the cursor to its previous position, and report changes
-function! strip_trailing_whitespace#Strip(start, end) abort
+function! strip_trailing_whitespace#(start, end) abort
" Save cursor position
let pos = getpos('.')
diff --git a/plugin/strip_trailing_whitespace.vim b/plugin/strip_trailing_whitespace.vim
index 2cbfb5d..a20a8a1 100644
--- a/plugin/strip_trailing_whitespace.vim
+++ b/plugin/strip_trailing_whitespace.vim
@@ -16,4 +16,4 @@ let loaded_strip_trailing_whitespace = 1
" User command for the above
command! -range=% StripTrailingWhitespace
- \ call strip_trailing_whitespace#Strip(<line1>, <line2>)
+ \ call strip_trailing_whitespace#(<line1>, <line2>)