Skip to content

Commit c15f3d2

Browse files
authored
Merge pull request #334 from Mike325/foldcolumn
Fix foldcolumn support for Neovim 0.5 Closes #342
2 parents f9f8ed9 + e3b6155 commit c15f3d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/sy/util.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function! sy#util#popup_create(hunkdiff) abort
153153
\ 'height': height,
154154
\ })
155155
call nvim_win_set_option(s:popup_window, 'cursorline', v:false)
156-
call nvim_win_set_option(s:popup_window, 'foldcolumn', 0)
156+
call nvim_win_set_option(s:popup_window, 'foldcolumn', has('nvim-0.5') ? '0' : 0)
157157
call nvim_win_set_option(s:popup_window, 'foldenable', v:false)
158158
call nvim_win_set_option(s:popup_window, 'number', v:false)
159159
call nvim_win_set_option(s:popup_window, 'relativenumber', v:false)

0 commit comments

Comments
 (0)