Skip to content

Commit 55fe7a8

Browse files
author
Kristijan Husak
committed
Add notification autocmd after window is opened.
1 parent 5de7858 commit 55fe7a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/db_ui/notifications.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ function! s:notification_nvim(msg, opts) abort
9999

100100
call s:nvim_close()
101101
let buf = nvim_create_buf(v:false, v:true)
102-
silent! exe 'autocmd BufEnter <buffer='.buf.'> :bw!'
103102
call nvim_buf_set_lines(buf, 0, -1, v:false, msg)
104103

105104
let s:win = nvim_open_win(buf, v:false, opts)
105+
silent! exe 'autocmd BufEnter <buffer='.buf.'> :bw!'
106106
call nvim_win_set_option(s:win, 'wrap', v:true)
107107
call nvim_win_set_option(s:win, 'signcolumn', 'yes') "simulate left padding
108108
call nvim_win_set_option(s:win, 'winhl', 'Normal:'.s:hl_by_type[type])

0 commit comments

Comments
 (0)