ide: fixed issue with high memory consumption #1292

git-svn-id: svn://ultimatepp.org/upp/trunk@9022 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-10-15 21:55:40 +00:00
parent 2a2c3641e8
commit a6980e1f41
5 changed files with 85 additions and 5 deletions

View file

@ -867,10 +867,16 @@ bool CodeEditor::Key(dword code, int count) {
bool sel = code & K_SHIFT;
switch(code & ~K_SHIFT) {
case K_CTRL_F:
FindReplace(sel, true, false);
if(withfindreplace) {
FindReplace(sel, true, false);
return true;
}
break;
case K_CTRL_H:
FindReplace(sel, true, true);
if(withfindreplace) {
FindReplace(sel, true, true);
return true;
}
break;
case K_F3:
if(sel)
@ -1053,6 +1059,7 @@ CodeEditor::CodeEditor() {
check_edited = false;
tippos = -1;
selkind = SEL_CHARS;
withfindreplace = true;
}
CodeEditor::~CodeEditor() {}