- fix: correctly update the start postion of selection after code completion

This commit is contained in:
Roy Qu 2022-07-20 16:57:42 +08:00
parent 6f7f637d11
commit 8acee3ed20
2 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,7 @@ Red Panda C++ Version 1.1.5
- change: uncheck "hide unsupported files" in files view shouldn't gray out non-c files
- enhancement: double clicking a non-text file in the files view, will open it with external program
- enhancement: double clicking a non-text file in the project's view, will open it with external program
- fix: correctly update the start postion of selection after code completion
Red Panda C++ Version 1.1.4

View File

@ -3169,6 +3169,8 @@ void Editor::completionInsert(bool appendFunc)
// fFunctionTip.FileName := fFileName;
// fFunctionTip.Show;
// end;
} else {
setCaretX(caretX());
}
}
mCompletionPopup->hide();
@ -3201,6 +3203,8 @@ void Editor::headerCompletionInsert()
setSelText(headerName);
setCaretX(caretX());
if (headerName.endsWith("/")) {
showHeaderCompletion(false,true);
} else {