Mercurial > vim
comparison src/edit.c @ 19627:6b1564fcab92 v8.2.0370
patch 8.2.0370: the typebuf_was_filled flag is sometimes not reset
Commit: https://github.com/vim/vim/commit/e49b4bb89505fad28cf89f0891aef3e2d397919e
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 11 13:01:40 2020 +0100
patch 8.2.0370: the typebuf_was_filled flag is sometimes not reset
Problem: The typebuf_was_filled flag is sometimes not reset, which may
cause a hang.
Solution: Make sure typebuf_was_filled is reset when the typeahead buffer is
empty.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 11 Mar 2020 13:15:04 +0100 |
parents | f12eda320c78 |
children | 9a67d41708d2 |
comparison
equal
deleted
inserted
replaced
19626:86e69ebd8460 | 19627:6b1564fcab92 |
---|---|
1610 && argidx == 1) | 1610 && argidx == 1) |
1611 { | 1611 { |
1612 // Match, consume the code. | 1612 // Match, consume the code. |
1613 typebuf.tb_off += idx + 1; | 1613 typebuf.tb_off += idx + 1; |
1614 typebuf.tb_len -= idx + 1; | 1614 typebuf.tb_len -= idx + 1; |
1615 #if defined(FEAT_CLIENTSERVER) || defined(FEAT_EVAL) | |
1616 if (typebuf.tb_len == 0) | |
1617 typebuf_was_filled = FALSE; | |
1618 #endif | |
1615 | 1619 |
1616 mod_mask = decode_modifiers(arg[!form]); | 1620 mod_mask = decode_modifiers(arg[!form]); |
1617 c = merge_modifyOtherKeys(arg[form]); | 1621 c = merge_modifyOtherKeys(arg[form]); |
1618 } | 1622 } |
1619 } | 1623 } |