[LyX/master] Do not run updateMacros if the buffer has not changed

Jean-Marc Lasgouttes lasgouttes at lyx.org
Fri Aug 30 13:14:21 UTC 2024


Le 30/08/2024 à 14:27, Scott Kostyshak a écrit :
> I have a question only out of curiosity (it doesn't have any practical
> consequence):
> 
> Also, is id_ ever updated by just 1 in updateId()? When I put debug code
> to print id_, when I type I see:

> id_: 0
> id_: 2
> id_: 4

You are right, of course. I knew about this 2-by-2 increase, but for 
some reason I convinced myself that that was related to an interference 
between the undo and the redo stack (don't ask).

Actually, it was just that I misread the documentation of allRelatives().

Fix pushed to master and stable.

Thanks, Scott!

JMarc



More information about the lyx-devel mailing list