Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Paste highlighting doesn't restore 'default' highlighting properly
- X-seq: zsh-workers 37900
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: Paste highlighting doesn't restore 'default' highlighting properly
- Date: Sun, 7 Feb 2016 03:32:35 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=5xX3VgOgMjOQ8Df+B9fpvAhbW8a8bA5J2oW4u/wuyMA=; b=XR26LlA3pUxpJ1PqUcXZij62rIs7LwS2TTuIk+WIiq79rtkMWMV9lQ42wWt9aPt0Ft ftl30uV1sESu89dqAziVVlF2FCZHi5JUJ+rWtk258frhM5tw8eO47UQfKb9djEtRoGXV EatX1TdCP08hPis2sbzhaH5xj7SABvrRQLxI0Nbi4OuDCWy4Ss6iRkrJaVNqX79u8Fsi CuzY4uwkVnn+k7TZrltqExe1JHHiDg8mBCkIwgOgKSQ7gKCOvO0s6ZthYj5YNb3YWV9V ArfucxAZ0JDcALokrCpeMADdTING1pdmsgpZNtARm1yrS3gLW9dQrStj9nQ7cCZgmfRM lDcA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
in zsh -f,
zle_highlight=(default:bg=blue paste:bold)
now, type a few characters in, position the character some distance
from the end, and paste something. If the pasted string is longer than
$#RBUFFER, the area to the right of the cursor after the paste is not
blue anymore. I'm guessing this is because the 'end bold' code
actually cancels colors too. Setting default:bold works fine though,
all the text is still bold after pasting.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author