From 42522f994afea526ed0d6cf54e083734a189dd22 Mon Sep 17 00:00:00 2001 From: David Antaramian Date: Fri, 30 Jun 2017 18:45:21 -0400 Subject: [PATCH] Fixes typo introduced in a10d321 Commmit a10d321809135ce35d8b6f105291902b1f2b8a76 introduced a small typo spelling a previously set variable `trailing_fmt` as `trailing_fm`. This causes Vim to report `trailing_fm` as an undefined variable. In this change, the variable is properly referenced as `trailing_fmt`. --- autoload/airline/extensions/whitespace.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions/whitespace.vim b/autoload/airline/extensions/whitespace.vim index 9ad5971..7b6ce3e 100644 --- a/autoload/airline/extensions/whitespace.vim +++ b/autoload/airline/extensions/whitespace.vim @@ -98,7 +98,7 @@ function! airline#extensions#whitespace#check() if s:show_message if trailing != 0 let trailing_fmt = get(g:, 'airline#extensions#whitespace#trailing_format', '[%s]trailing') - let b:airline_whitespace_check .= space.printf(trailing_fm, trailing) + let b:airline_whitespace_check .= space.printf(trailing_fmt, trailing) endif if mixed != 0 let mixed_indent_fmt = get(g:, 'airline#extensions#whitespace#mixed_indent_format', '[%s]mixed-indent')