diff --git a/autoload/nuwiki/commands.vim b/autoload/nuwiki/commands.vim index 8fc3914..2e7f976 100644 --- a/autoload/nuwiki/commands.vim +++ b/autoload/nuwiki/commands.vim @@ -598,7 +598,12 @@ function! s:open_browser(notification) abort silent execute '!xdg-open ' . shellescape(l:url, 1) . ' &' else echom 'nuwiki: exported → ' . l:url + return endif + " A silent `:!` shells out via the alternate screen and returns without + " repainting, leaving the editor UI garbled until the next redraw. Force a + " full repaint so the browser launch doesn't leave visual artifacts behind. + redraw! endfunction " ===== File ops =====