SynEdit: make swbWordSmart default for editor commands

git-svn-id: trunk@57874 -
This commit is contained in:
ondrej 2018-05-09 14:48:42 +00:00
parent e8025d5af5
commit 4846e4ed48

View File

@ -6665,7 +6665,8 @@ begin
case Command of
ecWordEndLeft, ecSelWordEndLeft: CaretNew := PrevWordLogicalPos(swbWordEnd);
ecHalfWordLeft, ecSelHalfWordLeft: CaretNew := PrevWordLogicalPos(swbCaseChange);
else CaretNew := PrevWordLogicalPos;
ecWordLeft: CaretNew := PrevWordLogicalPos(swbWordSmart);
ecSelWordLeft, ecColSelWordLeft: CaretNew := PrevWordLogicalPos(swbWordSmart);
end;
if FFoldedLinesView.FoldedAtTextIndex[CaretNew.Y - 1] then begin
CY := FindNextUnfoldedLine(CaretNew.Y, False);
@ -6679,7 +6680,8 @@ begin
case Command of
ecWordEndRight, ecSelWordEndRight: CaretNew := NextWordLogicalPos(swbWordEnd);
ecHalfWordRight, ecSelHalfWordRight: CaretNew := NextWordLogicalPos(swbCaseChange);
else CaretNew := NextWordLogicalPos;
ecWordRight: CaretNew := NextWordLogicalPos(swbWordSmart);
ecSelWordRight, ecColSelWordRight: CaretNew := NextWordLogicalPos(swbWordEnd);
end;
if FFoldedLinesView.FoldedAtTextIndex[CaretNew.Y - 1] then
CaretNew := Point(1, FindNextUnfoldedLine(CaretNew.Y, True));