编辑器
home
This commit is contained in:
@@ -1438,7 +1438,23 @@ type TCustomMemo = class(TCustomScrollControl,TCustomMemoCmd) //
|
|||||||
end
|
end
|
||||||
ecLineStart,ecSelLineStart:
|
ecLineStart,ecSelLineStart:
|
||||||
begin
|
begin
|
||||||
MoveCaretAndSelection(array(fCaretY,fCaretX),array(fCaretY,1),ecSelLineStart=cmd);
|
nx := 1;
|
||||||
|
//////////////20230323 回到非空白行首/////////////////////////////////
|
||||||
|
s := fLines.GetStringByIndex(fCaretY-1); //[fCaretY-1];
|
||||||
|
if ifstring(s) and s then
|
||||||
|
begin
|
||||||
|
for i := 1 to length(s) do
|
||||||
|
begin
|
||||||
|
vi := s[i];
|
||||||
|
if vi<>" " or vi="\t" then
|
||||||
|
begin
|
||||||
|
nx := i;
|
||||||
|
break;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
//////////////////////////////
|
||||||
|
MoveCaretAndSelection(array(fCaretY,fCaretX),array(fCaretY,nx),ecSelLineStart=cmd);
|
||||||
end
|
end
|
||||||
ecLeft,ecSelLeft:
|
ecLeft,ecSelLeft:
|
||||||
begin
|
begin
|
||||||
|
|||||||
Reference in New Issue
Block a user