parent
7ba6a5b974
commit
7712465e2c
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue