aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-13 14:47:42 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-13 14:47:42 +1200
commit39dca4f5c795766837dfdc1d868b2cd365c1f7f1 (patch)
treefc815cc1886030faaf848cc195c5f1fe8c01a975
parentMerge branch 'hotfix/v2.0.1' (diff)
parentUpdate documentation date (diff)
downloadvim-cursorline-current-39dca4f5c795766837dfdc1d868b2cd365c1f7f1.tar.gz
vim-cursorline-current-39dca4f5c795766837dfdc1d868b2cd365c1f7f1.zip
Merge branch 'release/v2.1.0'v2.1.0
* release/v2.1.0: Update documentation date Use :set rather than :let where practical
-rw-r--r--VERSION2
-rw-r--r--doc/cursorline_current.txt2
-rw-r--r--plugin/cursorline_current.vim4
3 files changed, 4 insertions, 4 deletions
diff --git a/VERSION b/VERSION
index 38f77a6..7ec1d6d 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.0.1
+2.1.0
diff --git a/doc/cursorline_current.txt b/doc/cursorline_current.txt
index a3d67a5..6a54bb6 100644
--- a/doc/cursorline_current.txt
+++ b/doc/cursorline_current.txt
@@ -1,4 +1,4 @@
-*cursorline_current.txt* For Vim version 7.0 Last change: 2019 Jun 10
+*cursorline_current.txt* For Vim version 7.0 Last change: 2019 Jun 13
DESCRIPTION *cursorline_current*
diff --git a/plugin/cursorline_current.vim b/plugin/cursorline_current.vim
index 1c09f91..0b698e3 100644
--- a/plugin/cursorline_current.vim
+++ b/plugin/cursorline_current.vim
@@ -27,13 +27,13 @@ augroup cursorline_current
" to the same as the global value, to correspond with an active state.
"
autocmd BufEnter,FocusGained,InsertLeave,WinEnter *
- \ let &l:cursorline = &g:cursorline
+ \ if &g:cursorline | setlocal cursorline | endif
" On leaving a buffer, the Vim application window losing focus, entering
" insert mode, or leaving a window, turn off the 'cursorline' option for the
" linked window, so that if it's on, it will only be in the active one.
"
autocmd BufLeave,FocusGained,InsertEnter,WinLeave *
- \ let &l:cursorline = 0
+ \ setlocal nocursorline
augroup END