mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
fixed theide debugger crashing and Alt+C of global functions
git-svn-id: svn://ultimatepp.org/upp/trunk@529 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
32e1758d80
commit
9c8d6a3b82
3 changed files with 8 additions and 3 deletions
|
|
@ -612,6 +612,8 @@ String AssistEditor::MakeDefinition(const String& cls, const String& _n)
|
|||
String id = p.ReadId();
|
||||
if(p.Char('(')) {
|
||||
String rp = RemoveDefPar(p.GetPtr());
|
||||
if(cls.GetCount() == 0)
|
||||
return NormalizeSpaces(String(beg, b) + ' ' + id + '(' + rp);
|
||||
if(dest)
|
||||
return NormalizeSpaces(String(beg, b) + cls + "::~" + id + '(' + rp);
|
||||
else
|
||||
|
|
@ -683,7 +685,10 @@ void AssistEditor::DCopy()
|
|||
while(iscid(*s)) s++;
|
||||
String id(b, s);
|
||||
if(m.name == id) {
|
||||
r << cls << "::" << m.name << s;
|
||||
if(cls.GetCount())
|
||||
r << cls << "::" << m.name << s;
|
||||
else
|
||||
r << m.name << s;
|
||||
break;
|
||||
}
|
||||
r << id;
|
||||
|
|
|
|||
Loading…
Reference in a new issue