File tree Expand file tree Collapse file tree 8 files changed +12
-24
lines changed
Expand file tree Collapse file tree 8 files changed +12
-24
lines changed Original file line number Diff line number Diff line change @@ -513,7 +513,7 @@ function! s:nvim_create_context(textlist, opts)
513513let opts.row = pos[0 ] - 1
514514let opts.col = pos[1 ] - 1
515515endif
516- if has (' nvim-0.5 .0' )
516+ if has (' nvim-0.6 .0' )
517517let opts.noautocmd = 1
518518endif
519519let winid = nvim_open_win (bid, 0 , opts)
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ function! s:nvim_create_input(prompt, opts)
149149let opts.height = hwnd.h
150150let opts.row = hwnd.opts.row
151151let opts.col = hwnd.opts.col
152- if has (' nvim-0.5 .0' )
152+ if has (' nvim-0.6 .0' )
153153let opts.noautocmd = 1
154154endif
155155let winid = nvim_open_win (hwnd.bid, 0 , opts)
@@ -163,7 +163,7 @@ function! s:nvim_create_input(prompt, opts)
163163let op .row = hwnd.opts.row - 2
164164let op .col = hwnd.opts.col - 2
165165let bordercolor = hwnd.opts.bordercolor
166- if has (' nvim-0.5 .0' )
166+ if has (' nvim-0.6 .0' )
167167let op .noautocmd = 1
168168endif
169169let background = nvim_open_win (nbid, 0 , op )
Original file line number Diff line number Diff line change @@ -506,7 +506,7 @@ function! s:nvim_create_listbox(textlist, opts)
506506let opts.row += 1
507507let opts.col += 1
508508endif
509- if has (' nvim-0.5 .0' )
509+ if has (' nvim-0.6 .0' )
510510let opts.noautocmd = 1
511511endif
512512let winid = nvim_open_win (bid, 0 , opts)
@@ -521,7 +521,7 @@ function! s:nvim_create_listbox(textlist, opts)
521521let op .row = opts.row - 1
522522let op .col = opts.col - 1
523523let bordercolor = get (a: opts , ' bordercolor' , ' QuickBorder' )
524- if has (' nvim-0.5 .0' )
524+ if has (' nvim-0.6 .0' )
525525let op .noautocmd = 1
526526endif
527527let background = nvim_open_win (nbid, 0 , op )
Original file line number Diff line number Diff line change @@ -711,7 +711,7 @@ function! quickui#menu#nvim_open_menu(opts)
711711let opts.row = 0
712712let opts.relative = ' editor'
713713let s: cmenu .bufnr = bid
714- if has (' nvim-0.5 .0' )
714+ if has (' nvim-0.6 .0' )
715715let opts.noautocmd = 1
716716endif
717717let winid = nvim_open_win (bid, 0 , opts)
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ function! quickui#preview#display(content, opts)
126126else
127127let bid = quickui#core#scratch_buffer (' preview' , source )
128128endif
129- if has (' nvim-0.5 .0' )
129+ if has (' nvim-0.6 .0' )
130130let opts.noautocmd = 1
131131endif
132132let winid = nvim_open_win (bid, 0 , opts)
@@ -144,7 +144,7 @@ function! quickui#preview#display(content, opts)
144144let op .row = pos.row - 1
145145let op .col = pos.col - 1
146146let bordercolor = get (a: opts , ' bordercolor' , color )
147- if has (' nvim-0.5 .0' )
147+ if has (' nvim-0.6 .0' )
148148let op .noautocmd = 1
149149endif
150150let background = nvim_open_win (nbid, 0 , op )
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ function! quickui#terminal#create(cmd, opts)
8686let opts.height = h
8787let opts.row = hwnd.opts.line - 1 + ((border > 0 )? 1 : 0 )
8888let opts.col = hwnd.opts.col - 1 + ((border > 0 )? 1 : 0 )
89- if has (' nvim-0.5 .0' )
89+ if has (' nvim-0.6 .0' )
9090let opts.noautocmd = 1
9191endif
9292let winid = nvim_open_win (bid, 1 , opts)
@@ -109,7 +109,7 @@ function! quickui#terminal#create(cmd, opts)
109109let pos = nvim_win_get_config (winid)
110110let op .row = hwnd.opts.line - 1
111111let op .col = hwnd.opts.col - 1
112- if has (' nvim-0.5 .0' )
112+ if has (' nvim-0.6 .0' )
113113let op .noautocmd = 1
114114endif
115115let background = nvim_open_win (nbid, 0 , op )
Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ function! s:nvim_create_textbox(textlist, opts)
222222let opts.row += 1
223223let opts.col += 1
224224endif
225- if has (' nvim-0.5 .0' )
225+ if has (' nvim-0.6 .0' )
226226let opts.noautocmd = 1
227227endif
228228let winid = nvim_open_win (bid, 0 , opts)
@@ -248,7 +248,7 @@ function! s:nvim_create_textbox(textlist, opts)
248248let op .row = pos.row - 1
249249let op .col = pos.col - 1
250250let bordercolor = get (a: opts , ' bordercolor' , ' QuickBorder' )
251- if has (' nvim-0.5 .0' )
251+ if has (' nvim-0.6 .0' )
252252let op .noautocmd = 1
253253endif
254254let background = nvim_open_win (nbid, 0 , op )
Original file line number Diff line number Diff line change @@ -434,18 +434,6 @@ function! quickui#utils#get_cursor(winid)
434434endfunc
435435
436436
437- " ----------------------------------------------------------------------
438- " first line to show in window.
439- " ----------------------------------------------------------------------
440- function ! quickui#utils#set_firstline (winid, line )
441- if g: quickui #core#has_nvim == 0
442- call popup_setoptions (a: winid , {' firstline' : a: line })
443- else
444- call nvim_win_set_cursor (a: winid , [a: line , 0 ])
445- endif
446- endfunc
447-
448-
449437" ----------------------------------------------------------------------
450438" get topline in current window
451439" ----------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments