From 3b46a4d9a3c237d004abd1365e2c22fef855f784 Mon Sep 17 00:00:00 2001 From: jolan78 Date: Mon, 4 May 2020 10:07:39 +0200 Subject: [PATCH] fix for #2127 --- autoload/airline/extensions/cursormode.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/airline/extensions/cursormode.vim b/autoload/airline/extensions/cursormode.vim index 57d6cf5d..9826ab08 100644 --- a/autoload/airline/extensions/cursormode.vim +++ b/autoload/airline/extensions/cursormode.vim @@ -5,10 +5,12 @@ scriptencoding utf-8 -if !exists('g:loaded_cursormode') +if exists('g:loaded_cursormode') finish endif +let g:loaded_cursormode = 1 + let s:is_win = has('win32') || has('win64') let s:is_iTerm = exists('$TERM_PROGRAM') && $TERM_PROGRAM =~# 'iTerm.app' let s:is_AppleTerminal = exists('$TERM_PROGRAM') && $TERM_PROGRAM =~# 'Apple_Terminal'