> In cmcheckmagic we have:
>        if (!MagicWrap (tty) || curY (tty) >= FrameRows (tty) - 1)
>            emacs_abort ();
>
> Is this an assertion that needs to always hold?

I very strongly doubt so myself.  And strangely it's _always_ an
off-by-one error here just as you sketched below.

> I have tried
> copy-pasting it at the beginning of tty_write_glyphs and I found that
> it fails continuously (e.g. it tests: 62 >= 63-1). Actually I used a
> breakpoint instead of emacs_abort.
> Are there useful places where I could trace that  the assertion holds
> true?, earlier places than the current place.

I suppose in all those cases curX (tty) == FrameCols (tty) does not hold
so the assertion does not trigger.

martin



        • ... Bug reports for GNU Emacs, the Swiss army knife of text editors
  • bug#73022:... Bug reports for GNU Emacs, the Swiss army knife of text editors
    • bug#7... Eli Zaretskii
      • b... Bug reports for GNU Emacs, the Swiss army knife of text editors
        • ... Eli Zaretskii
          • ... Bug reports for GNU Emacs, the Swiss army knife of text editors
          • ... Daniel Clemente
          • ... Eli Zaretskii
          • ... Bug reports for GNU Emacs, the Swiss army knife of text editors
    • bug#7... Daniel Clemente
      • b... Bug reports for GNU Emacs, the Swiss army knife of text editors
        • ... Eli Zaretskii
          • ... Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply via email to