lyx_mirror/src
Jean-Marc Lasgouttes 045aff3d9f Avoid duplicates in minibuffer history
The removal of duplicates is done in LastCommandsSection::add and uses
the erase-remove idiom for performance.

Most of the patch is a cleanup of GuiCommandBuffer:

* remove history_ member, that was a copy of the session lastcommands
  vector. Use instead a wrapper history() around it and a addHistory
  wrapper for adding new entries.

* Make sure that there is only one place where commands are added to
  history. The code used to maintain a list for interactive editing,
  and a list for saving the session. They could be different in terms
  of leading/trailing spaces.

* [unrelated] remove command_ member, which is just a copy of
  LyXAction list of commmands. Use directly lyxaction instead.
2022-07-13 19:53:08 +02:00
..
client Cmake build Qt6: Remove some redundant statements. 2021-03-24 11:42:39 +01:00
convert Use bool literals 2020-11-01 22:24:48 +02:00
frontends Avoid duplicates in minibuffer history 2022-07-13 19:53:08 +02:00
graphics Rename LATEX debug level to OUTFILE and use it for DocBook, HTML, and XML messages. 2022-03-01 16:05:42 +01:00
insets Amend [7efdbeaddf226/lyxgit] 2022-06-13 16:12:16 +02:00
mathed Fix bug #12561 2022-07-13 19:11:03 +02:00
support Guard 'isNumberChar()' from char outside ucs4-range 2022-05-29 14:08:36 +02:00
tests gzstream is able to read uncompressed files too 2021-11-24 11:44:53 +01:00
tex2lyx Fix gcc 13 compilation. 2022-06-28 10:26:42 +02:00
.gitignore
AppleSpellChecker.cpp Add way to remove items from document dictionary 2021-03-07 18:23:07 +01:00
AppleSpellChecker.h Meet per-document spelling dictionaries (fixes #86 [sic!]) 2021-03-06 16:53:33 +01:00
AspellChecker.cpp Add way to remove items from document dictionary 2021-03-07 18:23:07 +01:00
AspellChecker.h Meet per-document spelling dictionaries (fixes #86 [sic!]) 2021-03-06 16:53:33 +01:00
Author.cpp Revert "Fix a number of signedness warnings" 2020-11-02 17:09:59 -05:00
Author.h Revert "Fix a number of signedness warnings" 2020-11-02 17:09:59 -05:00
BiblioInfo.cpp Consider that "and" in BibTeX name lists is case-insensitive (#10465) 2022-02-19 11:58:11 +01:00
BiblioInfo.h Change name in source files 2020-12-05 17:17:02 -05:00
boost.cpp
Box.cpp Constify 2020-10-25 09:28:34 +02:00
Box.h Constify 2020-10-25 09:28:34 +02:00
BranchList.cpp Copy/paste error in BranchList::setColors 2021-01-29 18:51:19 +01:00
BranchList.h Fix compilation for clang 3.7 with libc++ 2021-04-06 12:07:42 +02:00
buffer_funcs.cpp Reduce includes in header files 2020-10-19 17:33:51 +03:00
buffer_funcs.h Remove unused forward declarations 2020-10-13 09:57:36 +03:00
Buffer.cpp updateBuffer needs an undo group 2022-03-08 16:16:50 +01:00
Buffer.h Properly show labels from broken references in Cross-references dialog 2022-02-19 18:14:47 +01:00
BufferEncodings.cpp CharInfo: allow to store several commands (both text and math) for each character. 2022-02-20 01:33:03 +01:00
BufferEncodings.h Clean includes using the output of iwyu tool 2020-10-20 11:38:55 +03:00
BufferList.cpp Fix compilation for clang 3.7 with libc++ 2021-04-06 12:07:42 +02:00
BufferList.h Clean includes using the output of iwyu tool 2020-10-20 11:38:55 +03:00
BufferParams.cpp BufferParams::copyForAdvFR(): include quote style 2022-05-23 14:32:01 +02:00
BufferParams.h Add basic support for \DeclareMetadata 2022-02-12 17:10:34 +01:00
BufferView.cpp Remove useless message (and avoid endless loop) 2022-06-30 12:30:01 +02:00
BufferView.h Rename BufferView::updateScrollbar to show what does 2021-10-29 17:45:51 +02:00
Bullet.cpp Whitespace 2022-03-05 13:45:27 +01:00
Bullet.h Use a more transparent lexic for bullet label functions 2022-03-05 09:00:47 +01:00
Changes.cpp Make color description "changed" rather than "added" 2021-11-01 12:47:11 +01:00
Changes.h More enums & includes refactoring 2020-12-06 18:26:41 +02:00
Chktex.cpp
Chktex.h
Citation.h Remove unused forward declarations 2020-10-13 09:57:36 +03:00
CiteEnginesList.cpp Change name in source files 2020-12-05 17:17:02 -05:00
CiteEnginesList.h Change name in source files 2020-12-05 17:17:02 -05:00
CMakeLists.txt prevent Qt6 from defining UNICODE (Qt6.1.1 and upwards) 2021-06-19 10:48:49 +02:00
CmdDef.cpp Reduce includes in header files 2020-10-19 17:33:51 +03:00
CmdDef.h Reduce includes in header files 2020-10-19 17:33:51 +03:00
Color.cpp Make color description "changed" rather than "added" 2021-11-01 12:47:11 +01:00
Color.h Branch: Implement separate static colors in dark mode 2021-01-19 17:04:04 +01:00
ColorCode.h Omit runtime messages if compiled with clang using flag '-fsanitize'. 2022-01-21 11:02:09 +01:00
ColorSet.h Set GUI name for local greyedouttext color (#12130) 2021-02-11 09:05:42 +01:00
Compare.cpp Allow to call cap::switchBetweenClasses without an ErrorList. 2021-02-25 21:49:50 -05:00
Compare.h Reduce includes in header files 2020-10-19 17:33:51 +03:00
CompletionList.h
Converter.cpp Replace $${python} directly in the converter constructor 2022-01-27 18:32:57 +00:00
Converter.h Replace $${python} directly in the converter constructor 2022-01-27 18:32:57 +00:00
ConverterCache.cpp Refactor checksum calculation 2020-11-21 20:32:43 +02:00
ConverterCache.h
CoordCache.cpp Clean includes using the output of iwyu tool 2020-10-20 11:38:55 +03:00
CoordCache.h Make CoordCache assertions less annoying. 2021-10-09 12:25:29 +02:00
Counters.cpp Change name in source files 2020-12-05 17:17:02 -05:00
Counters.h LaTeXName tag for counters. Layout format change. 2020-12-05 16:46:33 -05:00
Cursor.cpp Improve selection when selecting out of inset by the left 2022-04-18 18:17:56 +02:00
Cursor.h Always remove selection after cursor up/down 2021-06-30 16:51:58 +02:00
CursorSlice.cpp Move several common types to support/types.h 2020-11-27 12:16:22 +02:00
CursorSlice.h Move several common types to support/types.h 2020-11-27 12:16:22 +02:00
CutAndPaste.cpp Mark c&p buffers internal. Cures assertion (#12246) 2021-04-11 17:25:17 +02:00
CutAndPaste.h Allow to call cap::switchBetweenClasses without an ErrorList. 2021-02-25 21:49:50 -05:00
DepTable.cpp Clean includes using the output of iwyu tool 2020-10-20 11:38:55 +03:00
DepTable.h Reduce includes in header files 2020-10-19 17:33:51 +03:00
Dimension.cpp
Dimension.h Simplify constructors 2020-11-20 15:57:26 +02:00
DispatchResult.h Simplify DispatchResult ctors 2020-10-29 15:52:38 +02:00
DocIterator.cpp Simplify DocIterator 2020-11-30 13:04:58 +02:00
DocIterator.h Factor out the list of macro definitions for InsetPreview. 2021-10-13 19:26:49 +02:00
DocumentClassPtr.h Change name in source files 2020-12-05 17:17:02 -05:00
EnchantChecker.cpp Add way to remove items from document dictionary 2021-03-07 18:23:07 +01:00
EnchantChecker.h Meet per-document spelling dictionaries (fixes #86 [sic!]) 2021-03-06 16:53:33 +01:00
Encoding.cpp Encoding::fromLaTeXCommand: properly record requirements when exiting early 2022-03-02 12:48:10 +01:00
Encoding.h Amend 3f9e21b8 2022-03-06 23:01:56 +01:00
ErrorList.cpp Refactoring 2020-10-05 14:55:00 +02:00
ErrorList.h Clean includes using the output of iwyu tool 2020-10-20 11:38:55 +03:00
Exporter.cpp
Exporter.h
factory.cpp Use const references 2020-11-01 22:23:26 +02:00
factory.h
Floating.cpp Rename LATEX debug level to OUTFILE and use it for DocBook, HTML, and XML messages. 2022-03-01 16:05:42 +01:00
Floating.h Another indentation fix 2022-02-27 14:53:01 +01:00
FloatList.cpp
FloatList.h
Font.cpp FindAdv: Use private variable for_search 2022-05-09 22:11:38 +02:00
Font.h Improve some debug messages 2020-11-26 11:09:17 +01:00
FontEnums.h
FontInfo.cpp Simplify Changers 2020-11-12 14:22:00 +02:00
FontInfo.h Fix display of emphasize in slanted text 2021-03-07 13:32:34 +01:00
FontList.cpp Clean includes using the output of iwyu tool 2020-10-20 11:38:55 +03:00
FontList.h
Format.cpp Fix bug #3205. 2021-01-10 00:43:01 -05:00
Format.h Better naming for enums 2020-12-01 00:46:21 +02:00
FuncCode.h Allow syncing open/close status of branch inset with it's activation status. 2022-04-17 00:16:19 +02:00
FuncRequest.cpp Simplify FuncRequest constructors 2020-12-03 00:38:12 +02:00
FuncRequest.h Simplify FuncRequest constructors 2020-12-03 00:38:12 +02:00
FuncStatus.cpp
FuncStatus.h Make master compilable again with older gcc. 2020-10-21 00:01:03 +02:00
Graph.cpp Change name in source files 2020-12-05 17:17:02 -05:00
Graph.h Change name in source files 2020-12-05 17:17:02 -05:00
HunspellChecker.cpp Use a central typedef for vectors of WordLangTuple. 2021-07-16 16:39:05 +02:00
HunspellChecker.h Meet per-document spelling dictionaries (fixes #86 [sic!]) 2021-03-06 16:53:33 +01:00
IndicesList.cpp
IndicesList.h
InsetIterator.cpp Make InsetIterator compatible with range-based loops 2020-11-29 00:25:19 +02:00
InsetIterator.h Make InsetIterator compatible with range-based loops 2020-11-29 00:25:19 +02:00
InsetList.cpp
InsetList.h
Intl.cpp
Intl.h
KeyMap.cpp Use range-based loops 2020-11-21 20:32:16 +02:00
KeyMap.h
KeySequence.cpp Cleanup included headers 2020-11-30 13:04:54 +02:00
KeySequence.h Match header/source function argument naming 2020-11-01 22:23:44 +02:00
Language.cpp Match header/source function argument naming 2020-11-01 22:23:44 +02:00
Language.h Fix compilation on cygwin 2020-10-23 15:00:23 +02:00
LaTeX.cpp Rename LATEX debug level to OUTFILE and use it for DocBook, HTML, and XML messages. 2022-03-01 16:05:42 +01:00
LaTeX.h Merge namespace signals2 into namespace lyx 2020-12-19 22:52:51 +02:00
LaTeXFeatures.cpp Fix font inside footnote inset 2021-12-31 13:40:53 +01:00
LaTeXFeatures.h Fix compilation on cygwin 2020-11-30 11:32:35 +01:00
LaTeXFonts.cpp Constify LaTeXFont 2020-11-01 22:25:08 +02:00
LaTeXFonts.h Constify LaTeXFont 2020-11-01 22:25:08 +02:00
LaTeXPackages.cpp
LaTeXPackages.h
Layout.cpp DocBook: add support for DocBookArgumentAfterMainTag. 2021-02-17 21:09:21 +01:00
Layout.h Whitespace 2022-02-15 12:50:25 +01:00
LayoutEnums.h
LayoutFile.cpp Include standard <regex> 2020-11-29 15:27:28 +02:00
LayoutFile.h Change name in source files 2020-12-05 17:17:02 -05:00
LayoutModuleList.cpp
LayoutModuleList.h fix file name 2022-01-08 23:03:50 +01:00
Lexer.cpp gzstream is able to read uncompressed files too 2021-11-24 11:44:53 +01:00
Lexer.h Match header/source function argument naming 2020-11-01 22:23:44 +02:00
lyx_commit_hash.h.in
LyX.cpp Produce an error on bad debug level values 2021-03-26 17:55:54 +01:00
LyX.h
LyXAction.cpp * RELEASE-NOTES 2022-04-17 00:49:35 +02:00
LyXAction.h Use range-based loops 2020-11-21 20:32:16 +02:00
lyxfind.cpp FindAdv: Remove needless functions 2022-06-06 13:18:08 +02:00
lyxfind.h refactor: keep meaning of a variable consistent 2021-07-16 15:50:30 -04:00
LyXRC.cpp Add lyxrc option to force the use of backing store 2021-12-17 10:38:28 +01:00
LyXRC.h Add lyxrc option to force the use of backing store 2021-12-17 10:38:28 +01:00
LyXVC.cpp Typo 2020-12-19 18:29:10 +01:00
LyXVC.h Use right style for private member 2020-12-18 14:30:21 -05:00
lyxwinres.rc
main.cpp Set correct Windows console code page since all LyX output is in UTF-8 2021-03-12 18:15:33 +02:00
Makefile.am Implement Row::Element::row_flags 2021-12-07 17:04:47 +01:00
MetricsInfo.cpp Rework display of numbers in margins of hull insets 2021-07-09 23:46:16 +02:00
MetricsInfo.h Rework display of numbers in margins of hull insets 2021-07-09 23:46:16 +02:00
ModuleList.cpp Change name in source files 2020-12-05 17:17:02 -05:00
ModuleList.h Change name in source files 2020-12-05 17:17:02 -05:00
Mover.cpp Add new placeholder $${python} to configure 2022-01-04 00:21:34 +00:00
Mover.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
output_docbook.cpp Rename LATEX debug level to OUTFILE and use it for DocBook, HTML, and XML messages. 2022-03-01 16:05:42 +01:00
output_docbook.h Change name in source files 2020-12-05 17:17:02 -05:00
output_latex.cpp FindAdv: Use private variable for_search 2022-05-09 22:11:38 +02:00
output_latex.h Do not try to pop from an empty stack 2022-02-04 17:23:52 +01:00
output_plaintext.cpp Refactor InsetQuotes.h enums 2020-12-01 00:46:09 +02:00
output_plaintext.h Match header/source function argument naming 2020-11-01 22:23:44 +02:00
output_xhtml.cpp Change name in source files 2020-12-05 17:17:02 -05:00
output_xhtml.h Change name in source files 2020-12-05 17:17:02 -05:00
output.cpp
output.h
OutputEnums.h Change name in source files 2020-12-05 17:17:02 -05:00
OutputParams.cpp Better naming for enums 2020-12-01 00:46:21 +02:00
OutputParams.h FindAdv: Use private variable for_search 2022-05-09 22:11:38 +02:00
paper.h
Paragraph.cpp FindAdv: In format search could '$'-char be interpreted as math-start. 2022-05-13 09:30:30 +02:00
Paragraph.h Rename LATEX debug level to OUTFILE and use it for DocBook, HTML, and XML messages. 2022-03-01 16:05:42 +01:00
ParagraphList.h Simplify code to generate only one paragraph at a time. 2020-09-19 20:43:37 +02:00
ParagraphMetrics.cpp More enums & includes refactoring 2020-12-06 18:26:41 +02:00
ParagraphMetrics.h Small Row cleanups 2021-12-07 17:04:46 +01:00
ParagraphParameters.cpp Match header/source function argument naming 2020-11-01 22:23:44 +02:00
ParagraphParameters.h Use const references 2020-11-01 22:23:26 +02:00
ParIterator.cpp Remove useless casts reported by GCC with -Wuseless-cast option 2021-09-30 10:37:24 +03:00
ParIterator.h Get rid of std::iterator 2021-10-15 18:13:09 +02:00
PDFOptions.cpp Do not output hyperref option unicode with recent hyperref versions 2022-02-11 17:07:57 +01:00
PDFOptions.h Clean includes using the output of iwyu tool 2020-10-20 11:38:55 +03:00
PersonalWordList.cpp Clean includes using the output of iwyu tool 2020-10-20 11:38:55 +03:00
PersonalWordList.h
Row.cpp Implement CanBreakBefore row flag 2022-06-09 21:27:43 +02:00
Row.h Fix documentation of Row::splitAt 2022-05-31 17:04:20 +02:00
RowFlags.h Implement CanBreakBefore row flag 2022-06-09 21:27:43 +02:00
RowPainter.cpp Do not try to access user_defined_bullet with nesting > 3 2022-03-06 17:27:28 +01:00
RowPainter.h Display bookmarks in the workarea (take 2). 2021-02-26 19:09:25 +01:00
Server.cpp Use specialized WINAPI functions for specialized arguments 2021-06-19 10:48:15 +02:00
Server.h Add missing header include 2020-12-20 12:42:04 +01:00
ServerSocket.cpp Clean includes using the output of iwyu tool 2020-10-20 11:38:55 +03:00
ServerSocket.h
Session.cpp Avoid duplicates in minibuffer history 2022-07-13 19:53:08 +02:00
Session.h Avoid duplicates in minibuffer history 2022-07-13 19:53:08 +02:00
Spacing.cpp Use iround function, amend c0ce79452f 2020-11-27 12:16:50 +02:00
Spacing.h
SpellChecker.h Add way to remove items from document dictionary 2021-03-07 18:23:07 +01:00
TexRow.cpp Rename LATEX debug level to OUTFILE and use it for DocBook, HTML, and XML messages. 2022-03-01 16:05:42 +01:00
TexRow.h Move several common types to support/types.h 2020-11-27 12:16:22 +02:00
texstream.cpp
texstream.h
Text2.cpp Fixup 5f8959d4: keep cursor font when there was no selection 2022-05-17 23:10:31 +02:00
Text3.cpp Word selection on mouse motion 2022-05-17 18:45:31 +02:00
Text.cpp Word selection on mouse motion 2022-05-17 18:45:31 +02:00
Text.h Word selection on mouse motion 2022-05-17 18:45:31 +02:00
TextClass.cpp Allow for several (comma-separated) PackageOptions 2022-05-19 10:31:37 +02:00
TextClass.h Fix bug #12068 2021-01-14 01:15:19 -05:00
TextMetrics.cpp Combine the separation between different layouts (with same depth) 2022-02-20 18:09:57 +01:00
TextMetrics.h Fix computation of LABEL_MANUAL label separation 2022-01-17 17:35:12 +01:00
Thesaurus.cpp Use const references 2020-11-01 22:23:26 +02:00
Thesaurus.h Clean includes using the output of iwyu tool 2020-10-20 11:38:55 +03:00
Toc.h
TocBackend.cpp Properly show labels from broken references in Cross-references dialog 2022-02-19 18:14:47 +01:00
TocBackend.h Properly show labels from broken references in Cross-references dialog 2022-02-19 18:14:47 +01:00
TocBuilder.cpp Clean includes using the output of iwyu tool 2020-10-20 11:38:55 +03:00
TocBuilder.h Clean includes using the output of iwyu tool 2020-10-20 11:38:55 +03:00
Trans.cpp Clean includes using the output of iwyu tool 2020-10-20 11:38:55 +03:00
Trans.h Add override specifiers to improve code maintainability 2020-10-03 12:43:48 +02:00
Undo.cpp Make undo action no-ops when the buffer is read-only 2022-02-20 19:48:13 +01:00
Undo.h Fixup 3aab9ad2: improve UndoGroupHelper docs again. 2021-11-14 19:14:31 +01:00
update_flags.h Next runtime messages to be ommitted if compiled with clang using flag '-fsanitize'. 2022-01-23 20:13:26 +01:00
VCBackend.cpp * better wording 2021-10-21 16:01:57 +02:00
VCBackend.h Remove redundant semicolons reported by GCC with -Wextra-semi option 2021-09-28 11:28:43 +03:00
version.cpp
version.h Add basic support for \DeclareMetadata 2022-02-12 17:10:34 +01:00
VSpace.cpp Amend d3c335a5d5 2021-10-05 17:10:51 +03:00
VSpace.h
WordLangTuple.h Use a central typedef for vectors of WordLangTuple. 2021-07-16 16:39:05 +02:00
WordList.cpp
WordList.h
xml.cpp Rename LATEX debug level to OUTFILE and use it for DocBook, HTML, and XML messages. 2022-03-01 16:05:42 +01:00
xml.h Remove redundant declarations reported by GCC with -Wredundant-decls option 2021-09-28 20:59:21 +03:00