From 032ac502ff1378757d9ba56e5760d362570e48e4 Mon Sep 17 00:00:00 2001 From: ZyX Date: Mon, 7 Mar 2016 08:59:03 +0300 Subject: eval/decode: Do not loose high surrogates followed by high surrogates --- src/nvim/eval/decode.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/nvim/eval/decode.c b/src/nvim/eval/decode.c index 266da86b74..604b758344 100644 --- a/src/nvim/eval/decode.c +++ b/src/nvim/eval/decode.c @@ -499,6 +499,7 @@ json_decode_string_cycle_start: hasnul = true; } if (SURROGATE_HI_START <= ch && ch <= SURROGATE_HI_END) { + PUT_FST_IN_PAIR(fst_in_pair, str_end); fst_in_pair = (int) ch; } else if (SURROGATE_LO_START <= ch && ch <= SURROGATE_LO_END && fst_in_pair != 0) { -- cgit