连续事件中未显示Vim弹出窗口
我编写了以下插件来测试弹出窗口 “plugin/morning/morning.vim” “自动加载/上午。vim”连续事件中未显示Vim弹出窗口,vim,Vim,我编写了以下插件来测试弹出窗口 “plugin/morning/morning.vim” “自动加载/上午。vim” 第一次进入命令行时,弹出窗口出现。每次我连续进入命令行时,它都不会出现。我知道事件正在被触发,函数正在被调用,因为如果我将echom命令放在消息显示的函数中。有人知道会出什么问题吗?我发现,如果在显示弹出窗口后重新绘制,它似乎会一直工作。我不知道它为什么不能正常地重新绘制,或者这样做是否非常低效。这还具有覆盖wildmenu的副作用 function morning#open()
第一次进入命令行时,弹出窗口出现。每次我连续进入命令行时,它都不会出现。我知道事件正在被触发,函数正在被调用,因为如果我将
echom
命令放在消息显示的函数中。有人知道会出什么问题吗?我发现,如果在显示弹出窗口后重新绘制,它似乎会一直工作。我不知道它为什么不能正常地重新绘制,或者这样做是否非常低效。这还具有覆盖wildmenu
的副作用
function morning#open()
let opt = {}
let opt.border = []
let opt.minwidth = &columns / 3
let g:morning_window_handle = popup_create(":echo 'hi'", opt)
redraw
endfunction
function morning#close()
call popup_close(g:morning_window_handle)
endfunction
function morning#update()
call popup_settext(g:morning_window_handle, string(getcmdline()))
call popup_show(g:morning_window_handle)
redraw
endfunction
function morning#open()
let opt = {}
let opt.border = []
let opt.minwidth = &columns / 3
let g:morning_window_handle = popup_create(":echo 'hi'", opt)
endfunction
function morning#close()
call popup_close(g:morning_window_handle)
endfunction
function morning#update()
call popup_show(g:morning_window_handle)
endfunction
function morning#open()
let opt = {}
let opt.border = []
let opt.minwidth = &columns / 3
let g:morning_window_handle = popup_create(":echo 'hi'", opt)
redraw
endfunction
function morning#close()
call popup_close(g:morning_window_handle)
endfunction
function morning#update()
call popup_settext(g:morning_window_handle, string(getcmdline()))
call popup_show(g:morning_window_handle)
redraw
endfunction