Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] dot ('.') command repeats too much text #5112

Open
aghast opened this issue Mar 5, 2024 · 1 comment
Open

[BUG] dot ('.') command repeats too much text #5112

aghast opened this issue Mar 5, 2024 · 1 comment
Labels

Comments

@aghast
Copy link

aghast commented Mar 5, 2024

Version of Kakoune

unknown (but later than 20210828)

Reproducer

From bash prompt:

> kak test    # <-- no extension on file, so no filetype stuff

Within kak:

insert text: "foo(argtype arg)"
dupe 3 times:  xyppp
go back to top, cursor on ): gggl
insert text: "[const static 1]"
repeat for following lines: j.j.j.

Outcome

foo(argtype args[const static 1])
foo(argtype args[const static 1]])
foo(argtype args[const static 1]]])
foo(argtype args[const static 1]]]])

Expectations

foo(argtype args[const static 1])
foo(argtype args[const static 1])
foo(argtype args[const static 1])
foo(argtype args[const static 1])

Additional information

FWIW, if you have a macro line that ends with a bunch of tabs and a backslash ('\'), and you use . to paste in more endings, there is more than just a single character repeated. So I don't think this is "merely" an off-by-one error or something. It seems more likely to be multiple copies of the selection overlaying somehow?

OS is Debian 12.5

uname says

Linux laptop 6.1.0-17-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.69-1 (2023-12-30) x86_64 GNU/Linux

I ran kak -version and got "Kakoune unknown"

So I ran strings - /usr/bin/kak | grep '20[12]' and got:

assert failed "m_buffer.flags() & Buffer::Flags::Fifo" at buffer_utils.cc:201
 colored and curly underlines support (undocumented in 20210828)
2019-01-03
2019
assert failed "vm.exec("2019-01-03", RegexExecFlags::None)" at regex_impl.cc:1581
assert failed "StringView{vm.captures()[2], vm.captures()[3]} == "2019"" at regex_impl.cc:1582
0123456789abcdef00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
[?2026$p
[?2026h
[?2026l

So I'm guessing my version is post 202108, but that's all I got.

@aghast aghast added the bug label Mar 5, 2024
@schragge
Copy link

schragge commented Mar 13, 2024

Kakoune in Debian 12 repository is 2022.10.31. I can reproduce this neither with that version nor with 2023.08.05 nor with the git head. Could it somehow be related to #3600? That issue was recently fixed, and now I'm experiencing the very reverse problem: dot doesn't always repeat what it should. See #5122.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants