File tree 8 files changed +12
-24
lines changed
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)
513
513
let opts.row = pos[0 ] - 1
514
514
let opts.col = pos[1 ] - 1
515
515
endif
516
- if has (' nvim-0.5 .0' )
516
+ if has (' nvim-0.6 .0' )
517
517
let opts.noautocmd = 1
518
518
endif
519
519
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)
149
149
let opts.height = hwnd.h
150
150
let opts.row = hwnd.opts.row
151
151
let opts.col = hwnd.opts.col
152
- if has (' nvim-0.5 .0' )
152
+ if has (' nvim-0.6 .0' )
153
153
let opts.noautocmd = 1
154
154
endif
155
155
let winid = nvim_open_win (hwnd.bid, 0 , opts)
@@ -163,7 +163,7 @@ function! s:nvim_create_input(prompt, opts)
163
163
let op .row = hwnd.opts.row - 2
164
164
let op .col = hwnd.opts.col - 2
165
165
let bordercolor = hwnd.opts.bordercolor
166
- if has (' nvim-0.5 .0' )
166
+ if has (' nvim-0.6 .0' )
167
167
let op .noautocmd = 1
168
168
endif
169
169
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)
506
506
let opts.row += 1
507
507
let opts.col += 1
508
508
endif
509
- if has (' nvim-0.5 .0' )
509
+ if has (' nvim-0.6 .0' )
510
510
let opts.noautocmd = 1
511
511
endif
512
512
let winid = nvim_open_win (bid, 0 , opts)
@@ -521,7 +521,7 @@ function! s:nvim_create_listbox(textlist, opts)
521
521
let op .row = opts.row - 1
522
522
let op .col = opts.col - 1
523
523
let bordercolor = get (a: opts , ' bordercolor' , ' QuickBorder' )
524
- if has (' nvim-0.5 .0' )
524
+ if has (' nvim-0.6 .0' )
525
525
let op .noautocmd = 1
526
526
endif
527
527
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)
711
711
let opts.row = 0
712
712
let opts.relative = ' editor'
713
713
let s: cmenu .bufnr = bid
714
- if has (' nvim-0.5 .0' )
714
+ if has (' nvim-0.6 .0' )
715
715
let opts.noautocmd = 1
716
716
endif
717
717
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)
126
126
else
127
127
let bid = quickui#core#scratch_buffer (' preview' , source )
128
128
endif
129
- if has (' nvim-0.5 .0' )
129
+ if has (' nvim-0.6 .0' )
130
130
let opts.noautocmd = 1
131
131
endif
132
132
let winid = nvim_open_win (bid, 0 , opts)
@@ -144,7 +144,7 @@ function! quickui#preview#display(content, opts)
144
144
let op .row = pos.row - 1
145
145
let op .col = pos.col - 1
146
146
let bordercolor = get (a: opts , ' bordercolor' , color )
147
- if has (' nvim-0.5 .0' )
147
+ if has (' nvim-0.6 .0' )
148
148
let op .noautocmd = 1
149
149
endif
150
150
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)
86
86
let opts.height = h
87
87
let opts.row = hwnd.opts.line - 1 + ((border > 0 )? 1 : 0 )
88
88
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' )
90
90
let opts.noautocmd = 1
91
91
endif
92
92
let winid = nvim_open_win (bid, 1 , opts)
@@ -109,7 +109,7 @@ function! quickui#terminal#create(cmd, opts)
109
109
let pos = nvim_win_get_config (winid)
110
110
let op .row = hwnd.opts.line - 1
111
111
let op .col = hwnd.opts.col - 1
112
- if has (' nvim-0.5 .0' )
112
+ if has (' nvim-0.6 .0' )
113
113
let op .noautocmd = 1
114
114
endif
115
115
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)
222
222
let opts.row += 1
223
223
let opts.col += 1
224
224
endif
225
- if has (' nvim-0.5 .0' )
225
+ if has (' nvim-0.6 .0' )
226
226
let opts.noautocmd = 1
227
227
endif
228
228
let winid = nvim_open_win (bid, 0 , opts)
@@ -248,7 +248,7 @@ function! s:nvim_create_textbox(textlist, opts)
248
248
let op .row = pos.row - 1
249
249
let op .col = pos.col - 1
250
250
let bordercolor = get (a: opts , ' bordercolor' , ' QuickBorder' )
251
- if has (' nvim-0.5 .0' )
251
+ if has (' nvim-0.6 .0' )
252
252
let op .noautocmd = 1
253
253
endif
254
254
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)
434
434
endfunc
435
435
436
436
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
-
449
437
" ----------------------------------------------------------------------
450
438
" get topline in current window
451
439
" ----------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments