aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax/cpp.vim
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2026-09-19 10:19:52 -0400
committerGitHub <noreply@github.com>2026-09-19 10:19:52 -0400
commit03c74c34bd0aa6f08234776d338bb92b37e4137a (patch)
tree71e9c3e9ffb7de74856ea5b91853ef42d04a59e8 /runtime/syntax/cpp.vim
parente884c01befe74252249c4bed2f2922e474400ad6 (diff)
downloadrneovim-03c74c34bd0aa6f08234776d338bb92b37e4137a.tar.gz
rneovim-03c74c34bd0aa6f08234776d338bb92b37e4137a.tar.bz2
rneovim-03c74c34bd0aa6f08234776d338bb92b37e4137a.zip
fix(cmdatom): feedkeys() without "t" emits CmdAtom #41996
Problem: `nvim_feedkeys('gj', 'm')` (remap, but not "t"=typed) emits a CmdAtom for the mapping's insert session. Same for `feedkeys('ihello<Esc>', '')`. Keys fed without "t" land in `tb_maplen` ("mapped prefix"), just like a mapping's expansion, and `atom_is_user_input()` treats that as user input. Solution: Narrow the `atom_is_user_input` condition. A mapping resolved from typed keys always has a composite by the time its commands run, so `KeyTyped || (user cmd && composite active)` is sufficient.
Diffstat (limited to 'runtime/syntax/cpp.vim')
0 files changed, 0 insertions, 0 deletions