[vim/vim] v:register is wrong in v_: command (PR #18597)

7 views
Skip to first unread message

zeertzjq

unread,
Oct 18, 2025, 5:27:45 AM (3 days ago) Oct 18
to vim/vim, Subscribed

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)


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/18597

Commit Summary

  • 929117e v:register is wrong in v_: command

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18597@github.com>

zeertzjq

unread,
Oct 18, 2025, 5:31:43 AM (3 days ago) Oct 18
to vim/vim, Push

@zeertzjq pushed 1 commit.

  • d820f2a v:register is wrong in v_: command


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18597/before/09b391da458b88161eef01a163da38cb3104ee9c/after/d820f2a7815d7b19627668381af982e3465e1e6d@github.com>

zeertzjq

unread,
Oct 18, 2025, 5:32:21 AM (3 days ago) Oct 18
to vim/vim, Push

@zeertzjq pushed 1 commit.

  • 1fc1e59 v:register is wrong in v_: command

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18597/before/d820f2a7815d7b19627668381af982e3465e1e6d/after/1fc1e59dc7bd0d532a1313caa17560226f438969@github.com>

zeertzjq

unread,
Oct 18, 2025, 5:37:42 AM (3 days ago) Oct 18
to vim/vim, Push

@zeertzjq pushed 1 commit.

  • a8fec36 v:register is wrong in v_: command

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18597/before/1fc1e59dc7bd0d532a1313caa17560226f438969/after/a8fec3600dc24e3453d9de626ee5450ba60c3e9c@github.com>

zeertzjq

unread,
Oct 18, 2025, 5:39:21 AM (3 days ago) Oct 18
to vim/vim, Push

@zeertzjq pushed 1 commit.

  • 74930ad v:register is wrong in v_: command

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18597/before/a8fec3600dc24e3453d9de626ee5450ba60c3e9c/after/74930ad4ee06897a058a37309311b95ada2456d9@github.com>

Christian Brabandt

unread,
Oct 18, 2025, 9:38:50 AM (3 days ago) Oct 18
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#18597)

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.Message ID: <vim/vim/pull/18597/c3418441286@github.com>

zeertzjq

unread,
Oct 18, 2025, 9:54:29 AM (3 days ago) Oct 18
to vim/vim, Push

@zeertzjq pushed 1 commit.

  • ba080b0 v:register is wrong in v_: command

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18597/before/74930ad4ee06897a058a37309311b95ada2456d9/after/ba080b0821f6b77fde4f2f3533e6ff9c629fda18@github.com>

zeertzjq

unread,
Oct 18, 2025, 9:54:59 AM (3 days ago) Oct 18
to vim/vim, Subscribed
zeertzjq left a comment (vim/vim#18597)

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.Message ID: <vim/vim/pull/18597/c3418449790@github.com>

Christian Brabandt

unread,
Oct 18, 2025, 10:40:21 AM (3 days ago) Oct 18
to vim/vim, Subscribed

Closed #18597 via 0124320.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18597/issue_event/20360646393@github.com>

Christian Brabandt

unread,
Oct 18, 2025, 10:40:24 AM (3 days ago) Oct 18
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#18597)

thanks


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/18597/c3418475203@github.com>

Reply all
Reply to author
Forward
0 new messages