mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Fix bug #6144: Remover RegExp from them Menu and give the user the possibility to insert an empty RegExp in the Search field by choosing User defined.. in the Match.. combobox (what use does this option have ?).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31825 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3b409626f0
commit
8f5c3b6219
@ -362,7 +362,6 @@ Menuset
|
||||
Item "TeX Code|X" "ert-insert"
|
||||
Item "Program Listing[[Menu]]" "listing-insert"
|
||||
Item "Date" "date-insert"
|
||||
OptItem "Regular Expression" "regexp-mode"
|
||||
End
|
||||
|
||||
Menu "insert_special"
|
||||
|
@ -204,7 +204,7 @@ void FindAndReplaceWidget::findAndReplace(bool backwards, bool replace)
|
||||
void FindAndReplaceWidget::on_regexpInsertCombo_currentIndexChanged(int index)
|
||||
{
|
||||
static char const * regexps[] = {
|
||||
".*", ".+", "[a-z]+", "[0-9]+"
|
||||
".*", ".+", "[a-z]+", "[0-9]+", ""
|
||||
};
|
||||
LYXERR(Debug::FIND, "Index: " << index);
|
||||
if (index >= 1 && index < 1 + int(sizeof(regexps)/sizeof(regexps[0]))) {
|
||||
|
Loading…
Reference in New Issue
Block a user