From: bot-boi Date: Sun, 28 Mar 2021 00:56:04 +0000 (-0400) Subject: Ensure b:showing_message is always defined. X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/2f47f7550075ff18f3f5128989f09fc1e43fc0a7 Ensure b:showing_message is always defined. --- diff --git a/autoload/flake8.vim b/autoload/flake8.vim index 180bcad..15d061e 100644 --- a/autoload/flake8.vim +++ b/autoload/flake8.vim @@ -273,6 +273,10 @@ function! s:ShowErrorMessage() " {{{ if !exists('s:resultDict') return endif + if !exists('b:showing_message') + " ensure showing msg is always defined + let b:showing_message = ' ' + endif " if there is a message on the current line, " then echo it @@ -295,4 +299,3 @@ endfunction " }}} let &cpo = s:save_cpo unlet s:save_cpo -