aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2014-11-15 01:13:06 -0500
committerTeddy Wing2014-11-15 01:17:44 -0500
commit3c76f38c4af8ca159f1bd24c153558b1e7ae171d (patch)
treef461be64f6762cc79317fb1a2e13270317540db0
parentb766856147051d7d16f91bfb0f540885d12306f2 (diff)
downloadauditory.vim-3c76f38c4af8ca159f1bd24c153558b1e7ae171d.tar.bz2
autoload/auditory.vim: Fix `d` not saving to register bug
Previously my custom `d` and `dd` operators wouldn't save their deletions to the unnamed register. For normal custom operators this is exactly what you want, but not when you're making your own delete operator. When you notice this it becomes _extremely_ annoying. Fixing it here so now deleted text goes into the unnamed register.
-rw-r--r--autoload/auditory.vim2
1 files changed, 0 insertions, 2 deletions
diff --git a/autoload/auditory.vim b/autoload/auditory.vim
index 9b96c98..1c27485 100644
--- a/autoload/auditory.vim
+++ b/autoload/auditory.vim
@@ -181,7 +181,6 @@ vnoremap <silent> d :<C-U>call <SID>Delete(visualmode(), 1)<CR>
function! s:Delete(type, ...)
let sel_save = &selection
let &selection = "inclusive"
- let reg_save = @@
call auditory#Play('/Resources/Normal_Mode/Delete.wav')
@@ -196,7 +195,6 @@ function! s:Delete(type, ...)
endif
let &selection = sel_save
- let @@ = reg_save
endfunction
function! s:DeleteLine(type)