aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-29 23:06:43 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-29 23:06:43 +1300
commit2ffca0318642b6ee3bfd3ef36fd59244c8f48fa3 (patch)
tree7bad58cee0323e370d8e9cb817fc8d812fd46e36
parentMerge branch 'hotfix/v0.1.1' (diff)
parentBump VERSION (diff)
downloadvim-regex-escape-2ffca0318642b6ee3bfd3ef36fd59244c8f48fa3.tar.gz
vim-regex-escape-2ffca0318642b6ee3bfd3ef36fd59244c8f48fa3.zip
Merge branch 'hotfix/v0.1.2'v0.1.2
* hotfix/v0.1.2: Silence output from normal operations
-rw-r--r--VERSION2
-rw-r--r--autoload/regex_escape.vim8
2 files changed, 5 insertions, 5 deletions
diff --git a/VERSION b/VERSION
index 17e51c3..d917d3e 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.1
+0.1.2
diff --git a/autoload/regex_escape.vim b/autoload/regex_escape.vim
index 2390804..380f48b 100644
--- a/autoload/regex_escape.vim
+++ b/autoload/regex_escape.vim
@@ -29,11 +29,11 @@ function! regex_escape#Operatorfunc(type) abort
" Select or re-select text, depending on how we were invoked
if a:type ==# 'line'
- normal! '[V']y
+ silent normal! '[V']y
elseif a:type ==# 'block' " Typically doesn't work too well
- execute "normal! `[\<C-V>`]y"
+ silent execute "normal! `[\<C-V>`]y"
else
- normal! `[v`]y
+ silent normal! `[v`]y
endif
" Determine the regex flavor to use; if one is defined for the buffer, use
@@ -51,7 +51,7 @@ function! regex_escape#Operatorfunc(type) abort
" Paste our substituted changes back in over the top of the previously
" selected text, by reselecting it before the paste
- normal! gvp
+ silent normal! gvp
" Restore contents of the unnamed register and the previous values of the
" 'clipboard' and 'selection' options.