From 2763ef1c60b7602d003d66a934a44eb848dfe4ed Mon Sep 17 00:00:00 2001 From: "royqh1979@gmail.com" Date: Mon, 22 Nov 2021 15:50:28 +0800 Subject: [PATCH] work ave --- NEWS.md | 1 + RedPandaIDE/qsynedit/SynEdit.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 53727ccb..daffe860 100644 --- a/NEWS.md +++ b/NEWS.md @@ -3,6 +3,7 @@ Version 0.9.2 For Dev-C++ 7 Beta - fix: problem set & problem views not correctly hidden when disabled in the executor / problem set options - fix: executor / problem set options not correctly saved - fix: option "Move caret to the first non-space char in the current line when press HOME key" dosen't work fine. + - fix: ctrl+left can't correctly move to the beginning of the last word Version 0.9.1 For Dev-C++ 7 Beta - enhancement: code completion suggestion for "__func__" variable diff --git a/RedPandaIDE/qsynedit/SynEdit.cpp b/RedPandaIDE/qsynedit/SynEdit.cpp index a5d404ea..621152ac 100644 --- a/RedPandaIDE/qsynedit/SynEdit.cpp +++ b/RedPandaIDE/qsynedit/SynEdit.cpp @@ -1375,7 +1375,7 @@ BufferCoord SynEdit::prevWordPosEx(const BufferCoord &XY) } } else { // if previous char is a "whitespace" search for the last IdentChar - if (Line[CX - 2].isSpace()) + if (!isWordChar(Line[CX - 2])) CX = StrRScanForWordChar(Line, CX - 1); if (CX > 0) // search for the first IdentChar of this "word" CX = StrRScanForNonWordChar(Line, CX - 1)+1;