From 2f47f7550075ff18f3f5128989f09fc1e43fc0a7 Mon Sep 17 00:00:00 2001 From: bot-boi Date: Sat, 27 Mar 2021 20:56:04 -0400 Subject: [PATCH] Ensure b:showing_message is always defined. --- autoload/flake8.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 - -- 2.39.2