mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-29 06:12:59 -06:00
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:
parent
2a2c3641e8
commit
a6980e1f41
5 changed files with 85 additions and 5 deletions
|
|
@ -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() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue