diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-25 17:48:05 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-25 17:48:30 +1200 |
commit | 88532d32f22db8cf2fcbfc1655b1f543019fe5da (patch) | |
tree | 6bbbac171f279cdd8949e52d8012970bce75978b /autoload | |
parent | Inline backported s:Cursor() function (diff) | |
download | vim-strip-trailing-whitespace-88532d32f22db8cf2fcbfc1655b1f543019fe5da.tar.gz vim-strip-trailing-whitespace-88532d32f22db8cf2fcbfc1655b1f543019fe5da.zip |
Add exclamation mark to function declarations
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/strip_trailing_whitespace.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/autoload/strip_trailing_whitespace.vim b/autoload/strip_trailing_whitespace.vim index a4d4f91..14a2e2d 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#Strip(start, end) abort " Save cursor position let line = line('.') @@ -36,7 +36,7 @@ function strip_trailing_whitespace#Strip(start, end) abort endfunction " Strip horizontal trailing whitespace, return the number of lines changed -function s:StripHorizontal(start, end) abort +function! s:StripHorizontal(start, end) abort " Start a count of lines trimmed let stripped = 0 @@ -63,7 +63,7 @@ function s:StripHorizontal(start, end) abort endfunction " Strip trailing vertical whitespace, return the number of lines changed -function s:StripVertical() abort +function! s:StripVertical() abort " Store the number of the last line we found with non-whitespace characters " on it; start at 1 because even if it's empty it's never trailing |