Skip to content

Fixed marks grouping and coloring for simultaneous multi marks definition#2663

Merged
kovidgoyal merged 1 commit into
kovidgoyal:masterfrom
ahlinc:master
May 18, 2020
Merged

Fixed marks grouping and coloring for simultaneous multi marks definition#2663
kovidgoyal merged 1 commit into
kovidgoyal:masterfrom
ahlinc:master

Conversation

@ahlinc

@ahlinc ahlinc commented May 18, 2020

Copy link
Copy Markdown
Contributor

This PR fixes an issue with multiple simultaneous mark groups defined. The issue exists on a latest Kitty version and on top of the master branch. If I try to define several marks simultaneously in any available approach I got a text colored just by one color and that color just corresponds to a first mark group in the making definition.

Steps to reproduce:

  1. echo -e 'WARN\nERROR\nFAIL'
  2. kitty @ create-marker regex 1 FAIL 2 ERR 3 WARN

All three words should have different colors but all of them just colored as the FAIL word by the color of the first group in the applied marking definition.

Bellow screenshots demonstrate the issue:
Screenshot from 2020-05-18 06-52-20
Screenshot from 2020-05-18 06-51-21

With the PR fix:
Screenshot from 2020-05-18 07-08-22

P.S: And thanks for the great project! 🚀

@kovidgoyal
kovidgoyal merged commit 09fbd6f into kovidgoyal:master May 18, 2020
@ahlinc

ahlinc commented May 18, 2020

Copy link
Copy Markdown
Contributor Author

Super fast merge 🚀 😺 Thanks!

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.

2 participants