diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-05 15:52:19 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-11-05 15:52:19 +1300 |
commit | e53801bed6f36486669aef3f4d6fbfb110563a21 (patch) | |
tree | 285b00ffe30e6fdfbd4c71dbef904c8743a4c708 | |
parent | Merge branch 'release/v0.9.0' (diff) | |
parent | Put missing exclamation mark back into shell check (diff) | |
download | dotfiles-e53801bed6f36486669aef3f4d6fbfb110563a21.tar.gz dotfiles-e53801bed6f36486669aef3f4d6fbfb110563a21.zip |
Merge branch 'hotfix/v0.9.1'v0.9.1
* hotfix/v0.9.1:
Put missing exclamation mark back into shell check
Bump version number to 0.9.1
Don't report lines deleted after stripping space
-rw-r--r-- | VERSION | 4 | ||||
-rw-r--r-- | vim/ftplugin/sh.vim | 2 | ||||
-rw-r--r-- | vim/plugin/strip_trailing_whitespace.vim | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -1,2 +1,2 @@ -tejr dotfiles v0.9.0 -Sun Nov 5 02:13:08 UTC 2017 +tejr dotfiles v0.9.1 +Sun Nov 5 02:50:48 UTC 2017 diff --git a/vim/ftplugin/sh.vim b/vim/ftplugin/sh.vim index d13f34da..8990f0fa 100644 --- a/vim/ftplugin/sh.vim +++ b/vim/ftplugin/sh.vim @@ -39,7 +39,7 @@ nnoremap <buffer> <silent> " Map linter based on shell family if exists('b:is_bash') && b:is_bash - let b:lint = 'write shellcheck -s bash -' + let b:lint = 'write !shellcheck -s bash -' elseif exists('b:is_ksh') && b:is_ksh let b:lint = 'write !shellcheck -s ksh -' else diff --git a/vim/plugin/strip_trailing_whitespace.vim b/vim/plugin/strip_trailing_whitespace.vim index 9a9d3d95..ceeaec7c 100644 --- a/vim/plugin/strip_trailing_whitespace.vim +++ b/vim/plugin/strip_trailing_whitespace.vim @@ -54,7 +54,7 @@ function! s:StripTrailingWhitespace() let l:cc = col('.') " Delete the lines, which will move the cursor - execute l:lw + 1 . ',$ delete' + silent execute l:lw + 1 . ',$ delete' " Return the cursor to the saved position call cursor(l:lc, l:cc) |