parent
acce2fc884
commit
21c0b7a250
|
|
@ -1202,7 +1202,11 @@ type TCustomMemo = class(TCustomScrollControl,TCustomMemoCmd) //
|
|||
if fUndoList.CanUndo then
|
||||
begin
|
||||
lk := new tcountlocker(ftmemlockv);
|
||||
try
|
||||
UndoItem();
|
||||
except
|
||||
ClearUndo();
|
||||
end
|
||||
end
|
||||
end
|
||||
function Redo();
|
||||
|
|
@ -1210,7 +1214,11 @@ type TCustomMemo = class(TCustomScrollControl,TCustomMemoCmd) //
|
|||
if fRedoList.CanUndo then
|
||||
begin
|
||||
lk := new tcountlocker(ftmemlockv);
|
||||
RedoItem();
|
||||
try
|
||||
RedoItem();
|
||||
except
|
||||
ClearUndo();
|
||||
end
|
||||
end
|
||||
end
|
||||
function CharInput(c);virtual;//²åÈë×Ö·û
|
||||
|
|
@ -2365,11 +2373,7 @@ type TCustomMemo = class(TCustomScrollControl,TCustomMemoCmd) //
|
|||
if not s then return "";
|
||||
bg := min(bb[1],ee[1]);
|
||||
ed := max(bb[1],ee[1]);
|
||||
try
|
||||
if bg<ed then return s[bg:(ed-1)]; //2023078 ³ö´í
|
||||
except
|
||||
|
||||
end
|
||||
return "";
|
||||
{if ee[1]>bb[1]and ee[1]>1 then
|
||||
try
|
||||
|
|
|
|||
Loading…
Reference in New Issue