← Back to team overview

touch-packages team mailing list archive

[Bug 1361131] Re: constantly flashing bright green while typing

 

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 are willing to write the patch...

-- 
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

Status in nano package in Ubuntu:
  New

Bug description:
  While editing a shell script (.sh file) nano colours trailing spaces
  bright green.

  It also considers spaces that have just been typed to be trailing
  spaces.

  This results in constant flashing bright green while typing, which is
  both distracting and annoying.

  It's at its most ridiculous when typing comments (for which trailing
  whitespace is obviously completely irrelevant), but is also irritating
  any time you happen to look at what you're typing. Which for me is, as
  it happens, all the time.

  Ideal solution: only display trailing whitespace if the user is not,
  you know, still typing on that line, with the cursor right there.

  Easy solution: just shut up about the damn spaces already.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nano/+bug/1361131/+subscriptions


References