We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 270c144 commit 084fe4cCopy full SHA for 084fe4c
autoload/quickui/preview.vim
@@ -3,7 +3,7 @@
3
" preview.vim -
4
"
5
" Created by skywind on 2020/01/11
6
-" Last Modified: 2021/12/06 21:55
+" Last Modified: 2021/12/06 22:31
7
8
"======================================================================
9
@@ -159,9 +159,7 @@ function! quickui#preview#display(content, opts)
159
if has_key(a:opts, 'syntax')
160
let cmdlist += ['setl ft=' . fnameescape(a:opts.syntax) ]
161
endif
162
- if has('nvim')
163
- let cmdlist += ['setlocal scrolloff=0']
164
- endif
+ let cmdlist += ['silent! setlocal scrolloff=0']
165
call setbufvar(winbufnr(winid), '__quickui_cursor__', cursor)
166
call quickui#core#win_execute(winid, cmdlist)
167
call quickui#utils#update_cursor(winid)
0 commit comments