From de977486005f37bf102349cf13ac343582016b40 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 23 May 2019 14:44:21 +1200 Subject: Use get() for mail buffer variable fetch --- vim/autoload/quote.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vim/autoload/quote.vim b/vim/autoload/quote.vim index b84a87e8..b519e717 100644 --- a/vim/autoload/quote.vim +++ b/vim/autoload/quote.vim @@ -10,9 +10,7 @@ endfunction function! quote#QuoteOpfunc(type) abort " May as well make this configurable - let char = exists('b:quote_char') - \ ? b:quote_char - \ : '>' + let char = get(b:, 'quote_char', '>') " Iterate over each matched line for li in range(line('''['), line(''']')) -- cgit v1.2.3