** Changed in: nano (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to nano in Ubuntu.
https://bugs.launchpad.net/bugs/1361131
Title:
constantly flashing bright green while typing
I'm not against the highlighting of trailing whitespace, most of the
time i do actually want to be notified of it. The problem is that the
syntax highlighting code considers all spaces to be trailing
whitespace while the user is typing them. It's like a bell going off
every time you press the
Nano colours the things on the screen using just the regular expressions
specified in the relevant syntax file. There is no way that these
regexes can take the position of the cursor into account. (Well, not
without a major and ugly patch, and that for just one special case.)
So... unless you
Code is inspected far more often than it is written, and when inspecting
code, some people do want to be alerted to trailing whitespace. So
that's why it is in several of the *.nanorc files. However, those files
in /usr/share/nano are just examples -- they are meant to be customized
by the user.
If the trailing-whitespace highlighting annoys you, you can edit
/usr/share/nano/sh.nanorc and remove or comment out the line that says:
color ,green [[:space:]]+$. Problem solved. (You will then probably
want to do the same for the other *.nanorc files there.)
--
You received this bug
Why would this flashing behaviour ever be a desirable default?
On 26/03/15 01:12, Benno Schulenberg wrote:
If the trailing-whitespace highlighting annoys you, you can edit
/usr/share/nano/sh.nanorc and remove or comment out the line that says:
color ,green [[:space:]]+$. Problem solved. (You
6 matches
Mail list logo