Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix mismatch between showcmd and count - #20834

#20834
Open
rokke-git wants to merge 4 commits into
vim:mastervim/vim:masterfrom
rokke-git:patch-7rokke-git/vim:patch-7Copy head branch name to clipboard
Open

fix mismatch between showcmd and count#20834
rokke-git wants to merge 4 commits into
vim:mastervim/vim:masterfrom
rokke-git:patch-7rokke-git/vim:patch-7Copy head branch name to clipboard

Conversation

@rokke-git

@rokke-git rokke-git commented Jul 24, 2026

Copy link
Copy Markdown

this resets the number shown by :set showcmd when count has to be capped to prevent overflowing. since showcmd only shows exactly 10 characters, and 10 digit numbers fit into count, this gives a count a more exact limit, so old showcmd letters don't have to be considered when overwriting showcmd.

closes: #20728

this resets the count shown by `:set showcmd` when count has to be capped to
prevent overflowing. since `showcmd` only shows exactly 10 digits, and 10 digit
numbers fit into count, this gives a count a more exact limit, so that old
`showcmd` letters don't have to be considered when overwriting `showcmd`.

closes: vim#20728

Signed-off-by: rokke-git <66498307+rokke-git@users.noreply.github.com>
changes tests with respect to the new limit

Signed-off-by: rokke-git <66498307+rokke-git@users.noreply.github.com>
the test said it expected 999999999 but I think it should be 999999990? there might be something else I'm missing
sadly I don't think there's any easy way to warn that something
like 2147483y2147483 will not actually yank all 4611683235289 lines

Signed-off-by: rokke-git <66498307+rokke-git@users.noreply.github.com>
@dkearns

dkearns commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Thanks.

I've only skimmed this for intent but I think it's doing too much for a single PR. The showcmd issues and the altered count boundary should be handled separately. I don't see much justification for the latter and I'd make a very large wager it is not consequence free as it stands.

The showcmd changes also need testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

silently uses different count when above 999999999

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.