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

 
 

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

bug #65482: "Missing multidata" error when justifying selection

Submitter:  correctmost <correctmost>
Submitted:  Tue 19 Mar 2024 05:17:25 AM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Open

Wed 20 Mar 2024 03:30:20 AM UTC, comment #3: 

comment #2:

> Thanks for reporting!  But... I get the feeling that you're not finding these issues with just your random-typing scripts, but are guiding the scripts in certain directions where you suspect bugs -- right?


I reviewed code coverage data and made a few tweaks to uncover these "missing multidata" and "misplaced cursor" bugs:
- I enabled syntax highlighting
- I set breakpoints on all of the lines where there's a "please report a bug" message
- I changed the scripts to send more strings of text to increase the likelihood that nano has a full buffer when performing commands

I think this approach will yield a few more bugs before I have to do another coverage review.  Thanks for all of the fixes so far :).

correctmost <correctmost>
Tue 19 Mar 2024 04:27:45 PM UTC, comment #2: 

Fixed in git, commit 9f1431be, setting 'focusing' to false when a marked region is justified.

Thanks for reporting!  But... I get the feeling that you're not finding these issues with just your random-typing scripts, but are guiding the scripts in certain directions where you suspect bugs -- right?

Benno Schulenberg <bens>
Group administrator
Tue 19 Mar 2024 04:17:18 PM UTC, comment #1: 

Using the same 'just.py', a forward-marked version of the recipe:

src/nano --rc=syntax/python.nanorc +3,22 just.py`

Then type: ^6 ^V ^J

The problem is that the justified region fits entirely onscreen (so there would be multidata present above the screen), but nano defaults to centering the cursor whenever it does a full screen refresh.

Benno Schulenberg <bens>
Group administrator
Tue 19 Mar 2024 05:17:25 AM UTC, original submission:  

File set-up for 'just.py':

for row in $(seq 21); do
  for col in $(seq 36); do
    echo -n "a";
  done;

  echo;
done > just.py


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


Version: fdd92af3ac36552889b2fc52c958acca4412a478

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-19 bens StatusIn Progress Fixed
    2024-03-19 bens StatusNone In Progress
        Assigned toNone bens

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code