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

Mark regex matches break in neomutt #3403

Closed
PhrantiK opened this issue Mar 18, 2021 · 4 comments
Closed

Mark regex matches break in neomutt #3403

PhrantiK opened this issue Mar 18, 2021 · 4 comments
Labels

Comments

@PhrantiK
Copy link

Describe the bug

Regex matches on marks break within neomutt.

To Reproduce
Steps to reproduce the behavior:

  1. Enable mark shortcut key:
map kitty_mod+0 toggle_marker regex 1 \bLD[0-9]{4}\b
  1. fire up neomutt
  2. Enable mark

Expected behavior

Regex matches seem to work fine for the first dozen or so matches but then break down and shift 16 chars.

Screenshots

working:

Screen Shot 2021-03-18 at 16 03 43

Further down:

Screen Shot 2021-03-18 at 16 04 01

Environment details
OS: Name and version of operating system(s)

Created a blank config with only the shortcut key above with same results:

kitty 0.19.3 created by Kovid Goyal
Darwin gtd.local 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
ProductName:	macOS ProductVersion:	11.2.3 BuildVersion:	20D91
Loaded config files: /Users/hars/.config/kitty/kitty.conf

Config options different from defaults:
Changed shortcuts:
	shift+control+0 KeyAction(func='toggle_marker', args=['regex', ((1, '\\bLD[0-9]{4}\\b'),), re.UNICODE])

Screen Shot 2021-03-18 at 16 24 09

@PhrantiK PhrantiK added the bug label Mar 18, 2021
@kovidgoyal
Copy link
Owner

I'm going to need a better reproducer than that. Press ctrl+shift+h to view the screen in less and save the screen to a text file by pressing s in less. And post that text file, assuming the issue is producible with it.

@PhrantiK
Copy link
Author

PhrantiK commented Mar 18, 2021

Is there a way I can send it through privately? There's information on there I would rather not share publicly.

Edit: Not sure if it helps but just pressing ctrl + shift h and reapplying the mark to the screen fixes it. It also matches fine applying the regex in a less search on the output file.

Screen Shot 2021-03-18 at 19 48 22

@kovidgoyal
Copy link
Owner

You can email it to me, my email address is at the top of most kitty source code files.

@kovidgoyal
Copy link
Owner

If the marking is failing only inside neomutt, then rather than using ctrl+shift+h run kitty with --dump-bytes and get to the point where the problem occurs and post the dump file instead.

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