aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-28 23:08:54 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-28 23:08:54 +1200
commit6f89b6449fc2a33427d0cb8257c227cef98a64a0 (patch)
tree0fa8934067dc8cef68ca2a62a521b66b6ca59ea9
parentMerge branch 'release/v1.0.0' into develop (diff)
downloadvim-foldlevelstart-stdin-6f89b6449fc2a33427d0cb8257c227cef98a64a0.tar.gz
vim-foldlevelstart-stdin-6f89b6449fc2a33427d0cb8257c227cef98a64a0.zip
Don't attempt to apply gloval value of 'foldlevel'
-rw-r--r--plugin/foldlevelstart_stdin.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/foldlevelstart_stdin.vim b/plugin/foldlevelstart_stdin.vim
index 7e3531c..5fe7454 100644
--- a/plugin/foldlevelstart_stdin.vim
+++ b/plugin/foldlevelstart_stdin.vim
@@ -14,5 +14,5 @@ let loaded_foldlevelstart_stdin = 1
augroup foldlevelstart_stdin
autocmd!
autocmd StdinReadPre *
- \ let &l:foldlevel = max([&foldlevelstart, &g:foldlevel, 0])
+ \ let &l:foldlevel = max([&foldlevelstart, 0])
augroup END