bugGNU nano - Bugs: bug #52474, linter can mutilate file when mark...

 
 

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

bug #52474: linter can mutilate file when mark is on

Submitter:  Benno Schulenberg <bens>
Submitted:  Tue 21 Nov 2017 08:07:43 PM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Tue 21 Nov 2017 08:22:40 PM UTC, comment #1: 

Fixed in git, commit c42489d9.

Benno Schulenberg <bens>
Group administrator
Tue 21 Nov 2017 08:07:43 PM UTC, original submission:  

To reproduce, put 'extendsyntax c linter gcc -fshow-column' in your nanorc, and run:

   src/nano +1234 src/text.c

Then type:  M-A  xxx  <Down> <Down> <Down>  ^T  Y.

(Notice that after saving, the title continues to say "Modified".  Strange.  Also notice how nearly the whole edit window is highlighted.  :| )

Then type:  ^C  ^X  N.

Now look at the src/text.c file -- or do a 'git diff'.  Wow!  The whole file was deleted!  Only the bit that was highlighted remains.

Expected behavior: the linter saves the whole buffer, even when a part is highlighted.  And the linter switches the mark off while showing the places that error messages refer to.  And better: it leaves the mark off, because when the user exits from the linter (^C), most likely the cursor is somewhere else entirely, and the highlighted stuff will be kind of random, useless.

Benno Schulenberg <bens>
Group administrator

 

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

No files currently attached

 

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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-11-28 bens Open/ClosedOpen Closed
    2017-11-21 bens StatusIn Progress Fixed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code