mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Viewer - double byte text can have only even position (issue #338)
This commit is contained in:
parent
778a5b0530
commit
96f858f9ae
1 changed files with 6 additions and 0 deletions
|
|
@ -1809,6 +1809,12 @@ begin
|
|||
if not IsFileOpen then
|
||||
Exit;
|
||||
|
||||
// Double byte text can have only even position
|
||||
if (Encoding in ViewerEncodingDoubleByte) and Odd(Value) then
|
||||
begin
|
||||
Value := Value - 1;
|
||||
end;
|
||||
|
||||
// Speedup if total nr of lines is less then nr of lines that can be displayed.
|
||||
if (FPosition = FLowLimit) and // only if already at the top
|
||||
(FLineList.Count > 0) and (FLineList.Count < GetClientHeightInLines)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue