mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 19:59:14 +02:00
SynEdit: prevent syncro mode from being wrongly started, if no word pairs exist. Issue #16522
git-svn-id: trunk@25525 -
This commit is contained in:
parent
f607c5ba28
commit
1624eca2ae
@ -1000,6 +1000,7 @@ begin
|
||||
exit;
|
||||
end;
|
||||
FEditModeQueued := False;
|
||||
if FWordIndex.MultiWordCount = 0 then exit;
|
||||
|
||||
FMode := spseEditing;
|
||||
AreaMarkupEnabled := True;
|
||||
@ -1339,6 +1340,7 @@ begin
|
||||
if Handled or AfterProcessing or not Active then exit;
|
||||
|
||||
if FMode = spseSelecting then begin
|
||||
// todo: finish word-hash calculations / check if any cells exist
|
||||
Cmd := ConvertCommandToBaseSel(Command);
|
||||
Handled := True;
|
||||
case Cmd of
|
||||
|
Loading…
Reference in New Issue
Block a user