Merge branch 'master' into gdbmi
This commit is contained in:
commit
2ece0fa403
1
NEWS.md
1
NEWS.md
|
@ -1,5 +1,6 @@
|
||||||
Version 0.8.4 For Dev-C++ 7 Beta
|
Version 0.8.4 For Dev-C++ 7 Beta
|
||||||
- enhancement: auto save/load the default open folder in the configuration file
|
- enhancement: auto save/load the default open folder in the configuration file
|
||||||
|
- fix: shouldn't auto add '()' when char succeeding the completed function name is '('
|
||||||
|
|
||||||
Version 0.8.3 For Dev-C++ 7 Beta
|
Version 0.8.3 For Dev-C++ 7 Beta
|
||||||
- enhancement: View menu
|
- enhancement: View menu
|
||||||
|
|
|
@ -2462,7 +2462,7 @@ void Editor::completionInsert(bool appendFunc)
|
||||||
|| statement->kind == StatementKind::skConstructor
|
|| statement->kind == StatementKind::skConstructor
|
||||||
|| statement->kind == StatementKind::skDestructor) {
|
|| statement->kind == StatementKind::skDestructor) {
|
||||||
if ((p.Char >= lineText().length()) // it's the last char on line
|
if ((p.Char >= lineText().length()) // it's the last char on line
|
||||||
|| (lineText().at(p.Char) != '(')) { // it don't have '(' after it
|
|| (lineText().at(p.Char-1) != '(')) { // it don't have '(' after it
|
||||||
if (statement->fullName!="std::endl")
|
if (statement->fullName!="std::endl")
|
||||||
funcAddOn = "()";
|
funcAddOn = "()";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue