Mercurial > vim
comparison src/getchar.c @ 26592:9f445e07f766 v8.2.3825
patch 8.2.3825: various comments could be improved
Commit: https://github.com/vim/vim/commit/52797bae1710621926c03a2611c40a692c96fb44
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Dec 16 14:45:13 2021 +0000
patch 8.2.3825: various comments could be improved
Problem: Various comments could be improved.
Solution: Improve the comments.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 16 Dec 2021 16:00:05 +0100 |
parents | ef0c07cbf53f |
children | fc859aea8cec |
comparison
equal
deleted
inserted
replaced
26591:3a63b1e4a6f4 | 26592:9f445e07f766 |
---|---|
2675 // If there was no mapping at all use the character from the | 2675 // If there was no mapping at all use the character from the |
2676 // typeahead buffer right here. | 2676 // typeahead buffer right here. |
2677 if (mp == NULL) | 2677 if (mp == NULL) |
2678 { | 2678 { |
2679 *keylenp = keylen; | 2679 *keylenp = keylen; |
2680 return map_result_get; // got character, break for loop | 2680 return map_result_get; // get character from typeahead |
2681 } | 2681 } |
2682 } | 2682 } |
2683 | 2683 |
2684 if (keylen > 0) // full matching terminal code | 2684 if (keylen > 0) // full matching terminal code |
2685 { | 2685 { |
3058 } | 3058 } |
3059 KeyNoremap = typebuf.tb_noremap[ | 3059 KeyNoremap = typebuf.tb_noremap[ |
3060 typebuf.tb_off]; | 3060 typebuf.tb_off]; |
3061 del_typebuf(1, 0); | 3061 del_typebuf(1, 0); |
3062 } | 3062 } |
3063 break; | 3063 break; // got character, break the for loop |
3064 } | 3064 } |
3065 | 3065 |
3066 // not enough characters, get more | 3066 // not enough characters, get more |
3067 } | 3067 } |
3068 | 3068 |