bugGNU nano - Bugs: bug #65435, "Missing multidata"...

 
 

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

bug #65435: "Missing multidata" error when justifying selection with soft wrapped lines

Submitter:  correctmost <correctmost>
Submitted:  Fri 08 Mar 2024 12:45:47 PM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Open

Sat 09 Mar 2024 09:28:36 AM UTC, comment #2: 

Fixed in git, commit 260f00c7, by detecting a lack of multidata earlier and recalculating it then.

(I've put an `ISSET(SOFTWRAP)` in there so that missing `recook = TRUE` settings in normal mode will still get shown on the status bar.)

Thanks for reporting.

Benno Schulenberg <bens>
Group administrator
Sat 09 Mar 2024 07:45:55 AM UTC, comment #1: 

Hm.  One solution would be to add `|| ISSET(SOFTWRAP)` on line 1692 of src/text.c, but... it would too often cause recalculation when it's not actually needed.  So... I will opt for a more on-demand solution: checking in edit_refresh() whether recalculation is needed: when the line above the viewport does not have multidata.

Benno Schulenberg <bens>
Group administrator
Fri 08 Mar 2024 12:45:47 PM UTC, original submission:  

File set-up for 'multi.py':

for line in $(seq 11); do
  for word in $(seq 80); do
    echo -n "a";
  done;
  echo "";
done > multi.py


Steps to reproduce:
1 - Run `src/nano --rc=syntax/python.nanorc + multi.py` in an 80x24 terminal
2 - Alt + s
3 - Alt + a
4 - Alt + \
5 - Ctrl + j
--> You should receive a "Missing multidata" error


Version: 862574f3817abe66a116d3371337f6a3115c2d76

correctmost <correctmost>

 

(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 (Posted a comment)
  • -email is unavailable- added by correctmost (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-03-09 bens StatusIn Progress Fixed
    2024-03-09 bens StatusNone In Progress
        Assigned toNone bens

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code