aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2022-06-30 16:58:19 +1200
committerTom Ryder <tom@sanctum.geek.nz>2022-07-10 22:08:50 +1200
commit81431988bbce2aac9baeaf05f45f0188f62a9e09 (patch)
treeef1a20d3ee5509b492703bf480130bf9e6f3a278
parentTranslate autoload/colorscheme.vim to vim9script (diff)
downloaddotfiles-81431988bbce2aac9baeaf05f45f0188f62a9e09.tar.gz
dotfiles-81431988bbce2aac9baeaf05f45f0188f62a9e09.zip
Add explanatory comment for unusual scoping
-rw-r--r--vim/autoload/colorscheme.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/vim/autoload/colorscheme.vim b/vim/autoload/colorscheme.vim
index 3769180e..b3fa17f5 100644
--- a/vim/autoload/colorscheme.vim
+++ b/vim/autoload/colorscheme.vim
@@ -1,5 +1,9 @@
vim9script
+# I think this variable has to be script-local to be able to use it for
+# settings in every tab and window. If there's a nicer way to do this without
+# :execute I'd like to know, because the scope shouldn't really be this broad,
+# but it's not the end of the world.
var cursorline: bool
# Reset window-global value for 'cursorline' based on current colorscheme name