diff --git a/NEWS.md b/NEWS.md index cf66f53e..5a1dec2c 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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 diff --git a/RedPandaIDE/editor.cpp b/RedPandaIDE/editor.cpp index 207a3112..a48d06d9 100644 --- a/RedPandaIDE/editor.cpp +++ b/RedPandaIDE/editor.cpp @@ -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 {