Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

do not abort generating digraph, when list is empty but 2 chars are a…

…vailable
  • Loading branch information...
commit 126a6f34ec0c0978bae12513c8fcdea3ff2677b0 1 parent c8f3fa0
@chrisbra authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  autoload/unicode.vim
View
2  autoload/unicode.vim
@@ -526,7 +526,7 @@ fu! unicode#GetDigraph(type, ...) "{{{2
for i in range(2)
let char{i} = remove(chars, 0)
" ignore space as digraph char
- if char2nr(char{i}) > 126 || char2nr(char{i}) < 20 || char{i} is# ' ' || empty(chars)
+ if char2nr(char{i}) > 126 || char2nr(char{i}) < 20 || char{i} is# ' ' || (empty(chars) && i == 0)
let s.=char0. (exists("char1") ? char1 : "")
unlet! char0 char1
break

0 comments on commit 126a6f3

Please sign in to comment.
Something went wrong with that request. Please try again.