Problem: v:register is wrong in v_: command (after 9.1.1858).
Solution: Revert patch 9.1.1858 for now. Add a test.
related: #18583 (comment)
https://github.com/vim/vim/pull/18597
(2 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
@zeertzjq pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.
There is a discussion on the vim-dev mailinglist about a possible uninitialized variable and this PR also shows this:
normal.c: In function ‘normal_cmd’:
normal.c:999:19: warning: ‘did_visual_op’ may be used uninitialized [-Wmaybe-uninitialized]
999 | if (finish_op || did_visual_op)
| ~~~~~~~~~~^~~~~~~~~~~~~~~~
normal.c:972:9: note: ‘did_visual_op’ was declared here
972 | int did_visual_op = FALSE;
| ^~~~~~~~~~~~~
I think we may need to initialize did_visual_op
before the various goto normal_end
commands.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
I've moved it to the top of normal_cmd()
.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
thanks
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.