1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 06:10:05 +08:00

Fixed: fix 2 typos. (#2606)

This commit is contained in:
Lin Kun 2019-02-19 09:01:04 +08:00 committed by Wang Shidong
parent 009862c25e
commit 1834c60a40

View File

@ -264,8 +264,8 @@ endfunction " }}}
" icon -> number -> A-Za-z
" 65-90 97-122
function! s:compare_key(i1, i2) abort
let a = char2nr(a:i1 ==# '[SPC]' ? ' ' : a:i1 == '<Tab>' ? "\t" : a:i1)
let b = char2nr(a:i2 ==# '[SPC]' ? ' ' : a:i2 == '<Tab>' ? "\t" : a:i2)
let a = char2nr(a:i1 ==# '[SPC]' ? ' ' : a:i1 ==? '<Tab>' ? "\t" : a:i1)
let b = char2nr(a:i2 ==# '[SPC]' ? ' ' : a:i2 ==? '<Tab>' ? "\t" : a:i2)
if a - b == 32 && a >= 97 && a <= 122
return -1
elseif b - a == 32 && b >= 97 && b <= 122