bugGNU nano - Bugs: bug #47131, linter does not put cursor at...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #47131: linter does not put cursor at proper x position

Submitter:  Benno Schulenberg <bens>
Submitted:  Sat 13 Feb 2016 10:53:08 AM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Mon 10 Apr 2017 06:48:13 PM UTC, comment #2: 

Although I cannot reproduce this any more, I've applied the patch.  So... fixed in git, 2439e1e4.  If this creates problems with other linters, please report a new bug.

Benno Schulenberg <bens>
Group administrator
Mon 22 Feb 2016 08:00:19 PM UTC, comment #1: 

Partially fixed in SVN, r5669.

With attached patch, it is fully fixed for me when using 'gcc -fshow-column' as the linter.  Apparently gcc counts a tab as asingle "column" -- when it says 800:25 it means the 25th character in line 800, not column 25 with tabs expanded to eight spaces.  But possibly other linters work differently?

(file #36428)

Benno Schulenberg <bens>
Group administrator
Sat 13 Feb 2016 10:53:08 AM UTC, original submission:  

When linting, the cursor is not placed at the x position specified in the message on the statusbar.  I think it should.

For example, when having 'extendsyntax c linter gcc -fshow-column' in one's .nanorc and then running nano on src/chars.c and typing ^T, it will ask, at some point, to open "src/proto.h".  When you do so, it will show "src/proto.h:174:6: note: previous declaration of ‘nisblank’ was here" on the statusbar, but sometimes the cursor is at the start of the line, sometimes on the "n" of "nisblank", and I've also seen in somehere in the middle of "blank".  It seems to depend on what you did before.

Benno Schulenberg <bens>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #36428:  tab-is-one-char.patch added by bens (467B - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Submitted the item)
  •  

    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
    2017-04-14 bens Open/ClosedOpen Closed
    2017-04-10 bens Severity3 - Normal 2 - Minor
        StatusIn Progress Fixed
    2016-02-22 bens Attached File- Added tab-is-one-char.patch, #36428
        StatusNone In Progress
        Assigned toNone bens

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code