[LyX/master] Honor Update::SinglePar properly
Scott Kostyshak
skostysh at lyx.org
Tue Feb 21 16:01:55 UTC 2023
On Wed, Feb 20, 2019 at 02:37:03PM +0100, Jean-Marc Lasgouttes wrote:
> commit 9bdc0dab31337fd6788d587127842eb3558881ae
> Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
> Date: Wed Feb 20 12:01:44 2019 +0100
>
> Honor Update::SinglePar properly
>
> The SinglePar update flags has been a no-op for a long time without
> naybody noticing. This means that the current paragraph was
> always rebroken and redrawn, even when only moving the cursor around.
>
> Now we only do that when Update::SinglePar has been specified. This
> means that there may be cases where update will not be correct
> anymore, because this flag has not been specified. These places will
> have to be found and fixed.
>
> Update PAINTING_ANALYSIS.
> ---
Found an instance that seems to be missing an update.
Reproducing requires some fast typing. It is only 30% reproducible even
after a shot of espresso, but 100% reproducible if I cheat with xdotool.
To reproduce:
1. Open the attached document.
2. Place the cursor inside the empty math inset.
3. Very quickly type "\upsil<Tab>".
I get the attached screenshot.
If you are on Linux with X, you can use the following instead of typing
quickly:
# enter this into a terminal window after opening missing-update-screenshot.png.
sleep 5s &&
# Now switch to LyX and put the cursor in the math inset.
xdotool type --clearmodifiers --delay 0 "\upsil" &&
xdotool key Tab
Can anyone reproduce?
Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: missing-update.23.lyx
Type: application/x-lyx
Size: 1795 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20230221/acdc665d/attachment-0001.lyx>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: missing-update-screenshot.png
Type: image/png
Size: 14906 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20230221/acdc665d/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20230221/acdc665d/attachment-0001.asc>
More information about the lyx-devel
mailing list