mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-05 12:16:45 +02:00
synedit: less hints
git-svn-id: trunk@47825 -
This commit is contained in:
parent
2b3e6ffe55
commit
7c2f9cfff1
@ -643,13 +643,13 @@ begin
|
|||||||
ImmGetCompositionStringW(imc, GCS_COMPATTR, p, ImeCount + 2);
|
ImmGetCompositionStringW(imc, GCS_COMPATTR, p, ImeCount + 2);
|
||||||
//DebugLn(dbgMemRange(PByte( p), ImeCount));
|
//DebugLn(dbgMemRange(PByte( p), ImeCount));
|
||||||
i := 0;
|
i := 0;
|
||||||
while {%H-}i < ImeCount do begin
|
while longword(i) < ImeCount do begin
|
||||||
if ord(p[i]) = ATTR_TARGET_CONVERTED then begin
|
if ord(p[i]) = ATTR_TARGET_CONVERTED then begin
|
||||||
x := FImeBlockSelection.StartBytePos;
|
x := FImeBlockSelection.StartBytePos;
|
||||||
xy.x := x + CharToByte(x, i);
|
xy.x := x + CharToByte(x, i);
|
||||||
FImeBlockSelection2.StartLineBytePos := xy;
|
FImeBlockSelection2.StartLineBytePos := xy;
|
||||||
inc(i);
|
inc(i);
|
||||||
while {%H-}i < ImeCount do begin
|
while longword(i) < ImeCount do begin
|
||||||
if (ord(p[i]) <> ATTR_TARGET_CONVERTED) or (i = ImeCount-1) then begin
|
if (ord(p[i]) <> ATTR_TARGET_CONVERTED) or (i = ImeCount-1) then begin
|
||||||
if (ord(p[i]) = ATTR_TARGET_CONVERTED) then
|
if (ord(p[i]) = ATTR_TARGET_CONVERTED) then
|
||||||
inc(i);
|
inc(i);
|
||||||
|
@ -542,7 +542,7 @@ function TSynGutterLOvLineMarksList.TextLineToPixLine(ATxtLine: Integer): Intege
|
|||||||
begin
|
begin
|
||||||
if PixelHeight < 1 then exit(0);
|
if PixelHeight < 1 then exit(0);
|
||||||
|
|
||||||
Result := Int64({%H-}ATxtLine - 1) * Int64(PixelHeight) div TextLineCount;
|
Result := (Int64(ATxtLine) - 1) * Int64(PixelHeight) div TextLineCount;
|
||||||
|
|
||||||
If FPixelPerLine * 2 < ItemHeight then
|
If FPixelPerLine * 2 < ItemHeight then
|
||||||
dec(Result)
|
dec(Result)
|
||||||
|
Loading…
Reference in New Issue
Block a user