- change: Symbol completion of '(' won't test current character at the cursor.
- change: Symbol completion of '{' won't insert extra new lines.
This commit is contained in:
parent
23a1a80890
commit
10c134a5c7
5
NEWS.md
5
NEWS.md
|
@ -1,3 +1,8 @@
|
|||
Red Panda C++ Version 2.25
|
||||
|
||||
- change: Symbol completion of '(' won't test current character at the cursor.
|
||||
- change: Symbol completion of '{' won't insert extra new lines.
|
||||
|
||||
Red Panda C++ Version 2.24
|
||||
|
||||
- fix: members of elements of stl maps are not correctly suggested.
|
||||
|
|
|
@ -14,7 +14,7 @@ isEmpty(APP_NAME) {
|
|||
}
|
||||
|
||||
isEmpty(APP_VERSION) {
|
||||
APP_VERSION = 2.24
|
||||
APP_VERSION = 2.25
|
||||
}
|
||||
|
||||
contains(QMAKE_HOST.arch, x86_64):{
|
||||
|
|
|
@ -1014,23 +1014,23 @@ void Editor::keyPressEvent(QKeyEvent *event)
|
|||
case '}':
|
||||
case '[':
|
||||
case ']':
|
||||
case '<':
|
||||
case '*':
|
||||
case ';':
|
||||
case ',':
|
||||
case '(':
|
||||
handled = handleSymbolCompletion(ch);
|
||||
return;
|
||||
case '(': {
|
||||
QChar nextCh = nextNonSpaceChar(caretY()-1,caretX()-1);
|
||||
if (!isIdentChar(nextCh) && nextCh!='('
|
||||
&& nextCh!='"' && nextCh!='\'' ){
|
||||
handled = handleSymbolCompletion(ch);
|
||||
}
|
||||
return;
|
||||
}
|
||||
// QChar nextCh;
|
||||
// if (selAvail()) {
|
||||
// nextCh = nextNonSpaceChar(caretY()-1,caretX()-1);
|
||||
// } else {
|
||||
// nextCh = nextNonSpaceChar(caretY()-1,caretX()-1);
|
||||
// }
|
||||
// if (!isIdentChar(nextCh) && nextCh!='('
|
||||
// && nextCh!='"' && nextCh!='\'' ){
|
||||
case '<':
|
||||
case '>':
|
||||
if ((caretX() <= 1) || lineText().isEmpty()
|
||||
|| lineText()[caretX() - 2] != '-') {
|
||||
if (mParser) {
|
||||
handled = handleSymbolCompletion(ch);
|
||||
return;
|
||||
}
|
||||
|
@ -2740,9 +2740,7 @@ bool Editor::handleBraceCompletion()
|
|||
if (text.isEmpty()) {
|
||||
oldCaret = caretXY();
|
||||
} else {
|
||||
processCommand(QSynedit::EditCommand::InsertLine);
|
||||
setSelText(text);
|
||||
processCommand(QSynedit::EditCommand::InsertLine);
|
||||
}
|
||||
|
||||
processCommand(QSynedit::EditCommand::Char,'}');
|
||||
|
|
|
@ -14,7 +14,7 @@ qsynedit.subdir = libs/qsynedit
|
|||
|
||||
APP_NAME = RedPandaCPP
|
||||
|
||||
APP_VERSION = 2.24
|
||||
APP_VERSION = 2.25
|
||||
|
||||
# Add the dependencies so that the RedPandaIDE project can add the depended programs
|
||||
# into the main app bundle
|
||||
|
|
Loading…
Reference in New Issue