constantly flashing bright green while typing
Bug #1361131 reported by
tommy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nano (Ubuntu) |
New
|
Undecided
|
Unassigned |
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 post a comment you must log in.
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.)