zsh-workers
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: [BUG] region_highlight+=( "$start $end standout" ) doesn't work as expected
Date: Thu, 6 Dec 2018 08:03:37 +0100	[thread overview]
Message-ID: <CAKc7PVBiJGhEqVjJc-17g0aBhiKdomiSWOXyuv3JyRS1x0Bbyw@mail.gmail.com> (raw)

Hello,
if the first character at which "$start $end standout" should be
applied, i.e. $start character, is already highlighted, the style
standout will not be applied to it:

http://psprint.blinkenshell.org/standout-wrong-1.gif

Confirmation: If I manually force F-Sy-H code to clear previous
region_highlight content's before appliying "$start $end standout" to
region_highlight, then everything works – i.e. also $start character
is highlighted:

http://psprint.blinkenshell.org/standout-ok-2.gif

So basically the problem is: no standout-highlighting of $start
character if region_highlight has already an entry covering the $start
character.

I.e. region_highlight+=( "$start $end standout" ) will not work for
$start character.

A more permanent link for the gifs:

https://github.com/zdharma/fast-syntax-highlighting/issues/92#issuecomment-444768370
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org

             reply	other threads:[~2018-12-06  7:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-06  7:03 Sebastian Gniazdowski [this message]
2018-12-07  1:42 ` Sebastian Gniazdowski
2018-12-07  7:45   ` Daniel Shahaf
2018-12-07 15:04     ` Sebastian Gniazdowski
2018-12-09 18:49       ` Peter Stephenson
2018-12-09 19:20         ` Sebastian Gniazdowski
2018-12-09 19:48           ` Peter Stephenson
2018-12-09 20:19             ` Sebastian Gniazdowski
2018-12-09 20:56               ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKc7PVBiJGhEqVjJc-17g0aBhiKdomiSWOXyuv3JyRS1x0Bbyw@mail.gmail.com \
    --to=sgniazdowski@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).