File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,12 @@ endfunction
80
80
function s: CloseLast (redraw ) abort
81
81
if exists (' s:lastwinid' )
82
82
if has (' nvim' )
83
+ try
84
+ let options = s: nvim_window_options [s: lastwinid ]
85
+ for opt in keys (options )
86
+ call nvim_win_set_option (s: lastwinid , opt , s: nvim_window_options [s: lastwinid ][opt ])
87
+ endfor
88
+ catch | endtry
83
89
call nvim_win_close (s: lastwinid , v: true )
84
90
if exists (' #OmniSharp_nvim_popup' )
85
91
autocmd ! OmniSharp_nvim_popup
@@ -198,7 +204,10 @@ function! s:NvimOpen(what, opts) abort
198
204
let s: parentwinid = win_getid (winnr ())
199
205
let winid = nvim_open_win (bufnr , v: false , config)
200
206
let options = s: NvimGetOptions ()
207
+ let s: nvim_window_options = get (s: , ' nvim_window_options' , {})
208
+ let s: nvim_window_options [winid] = {}
201
209
for opt in keys (options )
210
+ let s: nvim_window_options [winid][opt ] = nvim_win_get_option (winid, opt )
202
211
call nvim_win_set_option (winid, opt , options [opt ])
203
212
endfor
204
213
call nvim_set_current_win (winid)
You can’t perform that action at this time.
0 commit comments