spotted synedit bug, cursor/zoom/scroll

This commit is contained in:
Basile Burg 2015-04-19 05:07:03 +02:00
parent bd461cf54d
commit da619d8479
1 changed files with 2 additions and 2 deletions

View File

@ -600,14 +600,13 @@ begin
identifierToD2Syn;
if not (Shift = [ssCtrl]) then exit;
//
IncPaintLock;
case Key of
VK_ADD: if Font.Size < 50 then Font.Size := Font.Size + 1;
VK_SUBTRACT: if Font.Size > 3 then Font.Size := Font.Size - 1;
VK_DECIMAL: Font.Size := fDefaultFontSize;
end;
DecPaintLock;
TCEEditorHintWindow.FontSize := Font.Size;
UpdateCursor;
fCanShowHint:=false;
fDDocWin.Hide;
end;
@ -705,6 +704,7 @@ begin
result := inherited DoMouseWheel(Shift, WheelDelta, MousePos);
fCanShowHint:=false;
fHintTimer.Enabled:=false;
//SynEdit bug: begin scroll, press CTRL still while. Wrong cursor size sometimes.
end;
{$ENDREGION --------------------------------------------------------------------}