mirror of https://gitlab.com/basile.b/dexed.git
address warnings
This commit is contained in:
parent
129d83d568
commit
f1f209a486
|
|
@ -100,7 +100,6 @@ constructor TDcdWrapper.create(aOwner: TComponent);
|
|||
var
|
||||
fname: string;
|
||||
i: integer = 0;
|
||||
r: TSemVer;
|
||||
begin
|
||||
inherited;
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ uses
|
|||
SynEdit, SynPluginSyncroEdit, SynCompletion, SynEditKeyCmds, LazSynEditText,
|
||||
SynHighlighterLFM, SynEditHighlighter, SynEditMouseCmds, SynEditFoldedView,
|
||||
SynEditMarks, SynEditTypes, SynHighlighterJScript, SynBeautifier, dialogs,
|
||||
md5, Spin, LCLIntf, LazFileUtils, LMessages, SynHighlighterCpp, math,
|
||||
md5, Spin, LCLIntf, LazFileUtils, LMessages, SynHighlighterCpp,
|
||||
SynGutterBase, LCLVersion, SynEditMiscProcs,
|
||||
Clipbrd, fpjson, jsonparser, LazUTF8, Buttons, StdCtrls,
|
||||
u_common, u_writableComponent, u_d2syn, u_txtsyn, u_dialogs, u_sxsyn,
|
||||
|
|
@ -2146,10 +2146,9 @@ end;
|
|||
|
||||
procedure TDexedMemo.centerCursor();
|
||||
var
|
||||
Y, LinesInWin, CurTopLine, NewTopLine: Integer;
|
||||
Y, LinesInWin, NewTopLine: Integer;
|
||||
begin
|
||||
LinesInWin := LinesInWindow;
|
||||
CurTopLine := TopView;
|
||||
Y := ToPos(TextView.TextToViewIndex(ToIdx(CaretY)));
|
||||
NewTopLine := Max(1, Y - (LinesInWin div 2));
|
||||
if NewTopLine < 1 then NewTopLine := 1;
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@ inherited TodoListWidget: TTodoListWidget
|
|||
end
|
||||
end
|
||||
inherited toolbar: TDexedToolBar
|
||||
Height = 30
|
||||
Width = 576
|
||||
OnResize = toolbarResize
|
||||
object btnGo: TDexedToolButton[0]
|
||||
|
|
|
|||
Loading…
Reference in New Issue