Make mode return only single letter except for virt replace mode
commit bcd37fc1152912 changed the detection of modes slightly in that it allowed not only single letters but also several letters. While in theory, it might be okay to have extra modes displayed like Insert Completion or Normal Insert, or Operator Pending, let's for now just revert it to the default. We can always enhance it later if requested.
This commit is contained in:
parent
a1c112cafd
commit
251ed064e8
@ -163,6 +163,9 @@ function! airline#check_mode(winnr)
|
|||||||
else
|
else
|
||||||
let l:mode = ['normal']
|
let l:mode = ['normal']
|
||||||
endif
|
endif
|
||||||
|
if l:m !=# 'Rv'
|
||||||
|
let l:m = l:m[0]
|
||||||
|
endif
|
||||||
let w:airline_current_mode = get(g:airline_mode_map, l:m, l:m)
|
let w:airline_current_mode = get(g:airline_mode_map, l:m, l:m)
|
||||||
else
|
else
|
||||||
let l:mode = ['inactive']
|
let l:mode = ['inactive']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user