diff options
author | zeertzjq <zeertzjq@outlook.com> | 2021-12-16 23:05:52 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2021-12-16 23:05:52 +0800 |
commit | f59f81c32e901b5f6990bbe0b5608c073c0b1b9c (patch) | |
tree | e73f52d79b13649741f59110b0a5416a83fbd366 /src/nvim/getchar.c | |
parent | 56fa08b458cbf98fa83c21c3e683f8e7e91a334f (diff) | |
download | rneovim-f59f81c32e901b5f6990bbe0b5608c073c0b1b9c.tar.gz rneovim-f59f81c32e901b5f6990bbe0b5608c073c0b1b9c.tar.bz2 rneovim-f59f81c32e901b5f6990bbe0b5608c073c0b1b9c.zip |
vim-patch:8.2.3825: various comments could be improved
Problem: Various comments could be improved.
Solution: Improve the comments.
https://github.com/vim/vim/commit/52797bae1710621926c03a2611c40a692c96fb44
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r-- | src/nvim/getchar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index 05c38a5233..6b1150cefa 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -1894,7 +1894,7 @@ static int handle_mapping(int *keylenp, bool *timedout, int *mapdepth) // buffer right here. Otherwise, use the mapping (loop around). if (mp == NULL) { *keylenp = keylen; - return map_result_get; // got character, break for loop + return map_result_get; // get character from typeahead } else { keylen = mp_match_len; } @@ -2166,7 +2166,7 @@ static int vgetorpeek(bool advance) KeyNoremap = typebuf.tb_noremap[typebuf.tb_off]; del_typebuf(1, 0); } - break; + break; // got character, break the for loop } // not enough characters, get more |