aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugin/copy_linebreak.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugin/copy_linebreak.vim b/plugin/copy_linebreak.vim
index 80ef96c..8ee6c05 100644
--- a/plugin/copy_linebreak.vim
+++ b/plugin/copy_linebreak.vim
@@ -27,8 +27,10 @@ endfunction
" Disable copy-friendly linebreak options
function! s:CopyLinebreakDisable()
setlocal linebreak linebreak?
- let &showbreak = s:showbreak_save
- unlet s:showbreak_save
+ if exists('s:showbreak_save')
+ let &showbreak = s:showbreak_save
+ unlet s:showbreak_save
+ endif
if exists('+breakindent')
setlocal breakindent<
endif