GNU nano - Bugs: bug #48521, whitespace at start of line is not...
You are not allowed to post comments on this tracker with your current authentication level.
bug #48521: whitespace at start of line is not colored consistently
Submitter: | None | ||
Submitted: | Fri 15 Jul 2016 09:46:33 AM UTC | ||
Severity: | 3 - Normal | Status: | Works For Me |
Assigned to: | bens | Open/Closed: | Closed |
Jump to the original submission
Fri 22 Jul 2016 02:37:11 PM UTC, comment #11: |
Benno Schulenberg <bens> |
Fri 22 Jul 2016 02:11:17 PM UTC, comment #10: The glitch is definitely not in nano. It was ltrace'd into a minimal reproducer for ncurses.
|
Anonymous |
Mon 18 Jul 2016 07:58:38 PM UTC, comment #9: Further questions: what terminal are you using? Does it also happen in xterm? And of a VT (Ctrl+Alt+F2, for example)?
|
Benno Schulenberg <bens> |
Mon 18 Jul 2016 06:53:13 PM UTC, comment #8: If you see colors when running with --syntax=none, then it cannot be nano miscoloring things. I begin to suspect that it is ncurses.
|
Benno Schulenberg <bens> |
Mon 18 Jul 2016 11:16:50 AM UTC, comment #7: This is git bisect result, run from 2.4.0 (good) to 2.5.0 (bad) on fedora 24:
|
Anonymous |
Sat 16 Jul 2016 12:25:31 PM UTC, comment #6: When you paste into an empty buffer, and haven't yet saved it to a file, there should be no colors at all, because nano has not yet chosen any syntax.
|
Benno Schulenberg <bens> |
Sat 16 Jul 2016 11:53:39 AM UTC, comment #5: It does not happen on nano 2.4.2 + fedora 23, with the very same reproducer. |
Anonymous |
Sat 16 Jul 2016 11:53:22 AM UTC, comment #4: There are no tabs in my case, only spaces. I know that tabs are colored, but I did not expect a space-only indent to be colored as well.
|
Anonymous |
Sat 16 Jul 2016 09:20:17 AM UTC, comment #3: Ah, now I get what you mean. The whitespace before "char *p" was red instead of blank. That is because, when using the default syntax, tabs after spaces get colored. Press M-P (Alt+P) to see what I mean -- you have (or had) one or more spaces (·) there before a tab (»), instead of all spaces or only a tab.
|
Benno Schulenberg <bens> |
Fri 15 Jul 2016 10:27:20 AM UTC, comment #2: Paste? But into where? Into a blank buffer? But then nano doesn't color anything.
|
Benno Schulenberg <bens> |
Fri 15 Jul 2016 09:52:54 AM UTC, comment #1: Sorry, submitted without 'verbatim' tags so whitespace was swallowed. Trying to post it again, anyway it is just 4 spaces indent in the function body and 8 spaces indent in the 'for' body.
|
Anonymous |
Fri 15 Jul 2016 09:46:33 AM UTC, original submission:
Paste the following, scroll up and down. The leading whitespace is colored on the line 'char *p', but not on the following and preceding lines.
|
Anonymous |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 6 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2016-08-29 | bens | Open/Closed | Open | Closed | |
2016-07-22 | bens | Status | Need Info | Works For Me | |
Assigned to | None | bens | |||
2016-07-18 | bens | Status | Invalid | Need Info | |
2016-07-16 | bens | Status | Need Info | Invalid | |
2016-07-15 | bens | Status | None | Need Info |
Powered by Savane 3.13-4448.
Corresponding source code
Thank you for investigating so thoroughly, and for reporting back.
(I would mark this "Not Our Bug", but Savannah doesn't know that status.)