Remove duplicate history entries in command buffer

Kornel Benko kornel at lyx.org
Sun Jul 10 13:23:11 UTC 2022


Am Sun, 10 Jul 2022 15:05:43 +0200
schrieb Jean-Marc Lasgouttes <lasgouttes.lyx.org at free.fr>:

> Le 10/07/2022 à 11:46, Kornel Benko a écrit :
> > While testing, using history in command buffer for some often repeated lyx-functions
> > is often made difficult when the previous (but not now desired) command
> > was repeated.
> > 
> > Objections?  
> 
> I like it, but I would make it simpler, like
> if (not already the last in history)
>      push(new command);
> 
> JMarc

Like this? Feel free to make it simpler.

	Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Session.cpp.patch
Type: text/x-patch
Size: 643 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20220710/5b0f550a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20220710/5b0f550a/attachment.asc>


More information about the lyx-devel mailing list