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

 
 

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

bug #65396: "Missing multidata" error when justifying text

Submitter:  correctmost <correctmost>
Submitted:  Sat 02 Mar 2024 04:54:21 AM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Open

Wed 06 Mar 2024 10:26:27 PM UTC, comment #5: 

comment #4:

> The fix is not enough, as I've seen another "Missing multidata" message after undoing some justification, but I am unable to reproduce that now.


I filed a follow-up bug that might be the issue you saw: bug #65426

correctmost <correctmost>
Mon 04 Mar 2024 11:58:29 AM UTC, comment #4: 

Fixed in git, commit 4ab80abb, by scheduling a recalculation of the multidata when doing a full justification and whenever a new paragraph is larger than the viewport.

The fix is not enough, as I've seen another "Missing multidata" message after undoing some justification, but I am unable to reproduce that now.

(Bug #65409 is an artifact of the "Missing multidata" message itself.  It could be avoided by stashing 'till_x', but... meh.)

Thanks for finding this, and for reporting.

Benno Schulenberg <bens>
Group administrator
Mon 04 Mar 2024 07:48:38 AM UTC, comment #3: 

Still absurder effects of commit 80c2000f are reported in bug #65409.

Benno Schulenberg <bens>
Group administrator
Mon 04 Mar 2024 07:28:21 AM UTC, comment #2: 

The offending commit is 80c2000f: "simplify a bit of code, eliding two labels and three gotos".  It introduces, of course, the "Missing multidata" message, but it also causes the lack of coloring of the trailing space on the top line, which is absurd because it is not colored by a multiline regex.

Benno Schulenberg <bens>
Group administrator
Sun 03 Mar 2024 10:25:10 AM UTC, comment #1: 

A more programmatic recipe:

for line in $(seq 23); do
  for word in $(seq 11); do
    echo -n "word ";
  done;
  echo "last";
done >mmm.py

src/nano --rc=syntax/python.nanorc --line  + mmm.py

The latter command should be run on a standard xterm (-geometry 80x24).

Now type: M-J

See that nano reports "Missing multidata", and that the trailing space on the top line (line 11) is not colored green.

Now scroll up by holding Alt+UpArrow.  See that of lines 3 to 11 the trailing space is not colored, but weirdly of lines 1 and 2 it is.

This precise recipe is easily fixed by setting `recook = TRUE` in do_full_justify(), but it is not enough: typing <Up> ^J instead of just M-J still causes multiple "Missing multidata" messages.

Benno Schulenberg <bens>
Group administrator
Sat 02 Mar 2024 04:54:21 AM UTC, original submission:  

My nanorc file:

syntax python "\.py$"
color brightgreen start="'''([^'),]|$)" end="(^|[^(\])'''"


Steps to reproduce:
1 - Run `nano --rcfile ./nanorc nonexistent.py`
2 - Resize the window so nano can fit a maximum of 5 lines and 36 columns
3 - Paste the following text:


1234567890abcdefghijklmnopqrstuvwxyz
1234567890
1234567890abcdefghijklmnopqrst
1234567890abcde
1


4 - Place the caret right after the last "1"
5 - Press enter
6 - Alt + j
--> You should receive a "Missing multidata" error

Version: 3098315e05e343ecf3c5d6f5fa65ff366d0bd1d6

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-04 bens StatusNone Fixed
        Summarymissing multidata error when justifying text "Missing multidata" error when justifying text
    2024-03-03 bens Assigned toNone bens

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code