Skip to content

Commit 71e3ffb

Browse files
committed
Fix E474: Invalid argument: cursorlineopt=number,line in Neovim nightly
The `cursorlineopt` was introduced at patch 8.1.2019 but at that time, the default value was `both` and `,` is not allowed in the value. After patch 8.1.2029, `,` is allowed and the default value became `number,line`. Neovim nightly (2021/08/01) raise E474 because neovim/neovim#15161 only introduce patch 8.1.2019.
1 parent a4d4288 commit 71e3ffb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

autoload/fern/internal/viewer/hide_cursor.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ function! s:hide_cursor_init() abort
1717

1818
" Do NOT allow cursorlineopt=number while the cursor is hidden (Fix #182)
1919
if exists('+cursorlineopt')
20-
setlocal cursorlineopt=number,line
20+
" NOTE:
21+
" Default value is `number,line` (or `both` prior to patch-8.1.2029)
22+
setlocal cursorlineopt&
2123
endif
2224
endfunction

0 commit comments

Comments
 (0)