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)
513513 let opts.row = pos[0 ] - 1
514514 let opts.col = pos[1 ] - 1
515515 endif
516- if has (' nvim-0.5 .0' )
516+ if has (' nvim-0.6 .0' )
517517 let opts.noautocmd = 1
518518 endif
519519 let 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)
149149 let opts.height = hwnd.h
150150 let opts.row = hwnd.opts.row
151151 let opts.col = hwnd.opts.col
152- if has (' nvim-0.5 .0' )
152+ if has (' nvim-0.6 .0' )
153153 let opts.noautocmd = 1
154154 endif
155155 let winid = nvim_open_win (hwnd.bid, 0 , opts)
@@ -163,7 +163,7 @@ function! s:nvim_create_input(prompt, opts)
163163 let op .row = hwnd.opts.row - 2
164164 let op .col = hwnd.opts.col - 2
165165 let bordercolor = hwnd.opts.bordercolor
166- if has (' nvim-0.5 .0' )
166+ if has (' nvim-0.6 .0' )
167167 let op .noautocmd = 1
168168 endif
169169 let 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)
506506 let opts.row += 1
507507 let opts.col += 1
508508 endif
509- if has (' nvim-0.5 .0' )
509+ if has (' nvim-0.6 .0' )
510510 let opts.noautocmd = 1
511511 endif
512512 let winid = nvim_open_win (bid, 0 , opts)
@@ -521,7 +521,7 @@ function! s:nvim_create_listbox(textlist, opts)
521521 let op .row = opts.row - 1
522522 let op .col = opts.col - 1
523523 let bordercolor = get (a: opts , ' bordercolor' , ' QuickBorder' )
524- if has (' nvim-0.5 .0' )
524+ if has (' nvim-0.6 .0' )
525525 let op .noautocmd = 1
526526 endif
527527 let 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)
711711 let opts.row = 0
712712 let opts.relative = ' editor'
713713 let s: cmenu .bufnr = bid
714- if has (' nvim-0.5 .0' )
714+ if has (' nvim-0.6 .0' )
715715 let opts.noautocmd = 1
716716 endif
717717 let 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)
126126 else
127127 let bid = quickui#core#scratch_buffer (' preview' , source )
128128 endif
129- if has (' nvim-0.5 .0' )
129+ if has (' nvim-0.6 .0' )
130130 let opts.noautocmd = 1
131131 endif
132132 let winid = nvim_open_win (bid, 0 , opts)
@@ -144,7 +144,7 @@ function! quickui#preview#display(content, opts)
144144 let op .row = pos.row - 1
145145 let op .col = pos.col - 1
146146 let bordercolor = get (a: opts , ' bordercolor' , color )
147- if has (' nvim-0.5 .0' )
147+ if has (' nvim-0.6 .0' )
148148 let op .noautocmd = 1
149149 endif
150150 let 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)
8686 let opts.height = h
8787 let opts.row = hwnd.opts.line - 1 + ((border > 0 )? 1 : 0 )
8888 let opts.col = hwnd.opts.col - 1 + ((border > 0 )? 1 : 0 )
89- if has (' nvim-0.5 .0' )
89+ if has (' nvim-0.6 .0' )
9090 let opts.noautocmd = 1
9191 endif
9292 let winid = nvim_open_win (bid, 1 , opts)
@@ -109,7 +109,7 @@ function! quickui#terminal#create(cmd, opts)
109109 let pos = nvim_win_get_config (winid)
110110 let op .row = hwnd.opts.line - 1
111111 let op .col = hwnd.opts.col - 1
112- if has (' nvim-0.5 .0' )
112+ if has (' nvim-0.6 .0' )
113113 let op .noautocmd = 1
114114 endif
115115 let 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)
222222 let opts.row += 1
223223 let opts.col += 1
224224 endif
225- if has (' nvim-0.5 .0' )
225+ if has (' nvim-0.6 .0' )
226226 let opts.noautocmd = 1
227227 endif
228228 let winid = nvim_open_win (bid, 0 , opts)
@@ -248,7 +248,7 @@ function! s:nvim_create_textbox(textlist, opts)
248248 let op .row = pos.row - 1
249249 let op .col = pos.col - 1
250250 let bordercolor = get (a: opts , ' bordercolor' , ' QuickBorder' )
251- if has (' nvim-0.5 .0' )
251+ if has (' nvim-0.6 .0' )
252252 let op .noautocmd = 1
253253 endif
254254 let 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