aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin/copy_linebreak.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-05-28 11:47:01 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-05-28 11:47:01 +1200
commit0064da097f13e1c1a8843308572976a436b15e28 (patch)
tree10f7f8124a0202aa9a3de0e8e228ff046150b796 /vim/plugin/copy_linebreak.vim
parentMerge branch 'release/v0.34.0' into develop (diff)
downloaddotfiles-0064da097f13e1c1a8843308572976a436b15e28.tar.gz
dotfiles-0064da097f13e1c1a8843308572976a436b15e28.zip
Use _save suffix for option caching variable
This makes it explicit what the variable is for, in the same way as s:cpoptions_save in vim/vimrc.
Diffstat (limited to 'vim/plugin/copy_linebreak.vim')
-rw-r--r--vim/plugin/copy_linebreak.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/plugin/copy_linebreak.vim b/vim/plugin/copy_linebreak.vim
index 0924134c..a7d8a3e5 100644
--- a/vim/plugin/copy_linebreak.vim
+++ b/vim/plugin/copy_linebreak.vim
@@ -17,7 +17,7 @@ let g:loaded_copy_linebreak = 1
" Enable copy-friendly linebreak options
function! s:CopyLinebreakEnable()
setlocal nolinebreak linebreak?
- let s:showbreak = &showbreak
+ let s:showbreak_save = &showbreak
set showbreak=
if exists('+breakindent')
setlocal nobreakindent
@@ -27,7 +27,7 @@ endfunction
" Disable copy-friendly linebreak options
function! s:CopyLinebreakDisable()
setlocal linebreak linebreak?
- let &showbreak = s:showbreak
+ let &showbreak = s:showbreak_save
if exists('+breakindent')
setlocal breakindent<
endif