mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Viewer - selection invisible characters in the text mode
(cherry picked from commit dd75f9103c)
This commit is contained in:
parent
fe41de0fbd
commit
86644c3990
1 changed files with 6 additions and 2 deletions
|
|
@ -233,7 +233,7 @@ type
|
|||
FMouseBlockBeg: PtrInt;
|
||||
FMouseBlockSide: TCharSide;
|
||||
FSelecting: Boolean;
|
||||
FTextWidth: Integer; // max char count or width in window
|
||||
FTextWidth: Integer; // max char count or width in window
|
||||
FTextHeight: Integer; // measured values of font, rec calc at font changed
|
||||
FScrollBarVert: TScrollBar;
|
||||
FScrollBarHorz: TScrollBar;
|
||||
|
|
@ -553,7 +553,6 @@ uses
|
|||
|
||||
|
||||
const
|
||||
//cTextWidth = 80; // wrap on 80 chars
|
||||
cBinWidth = 80;
|
||||
|
||||
// These strings must be Ascii only.
|
||||
|
|
@ -2767,6 +2766,11 @@ var
|
|||
Continue;
|
||||
end;
|
||||
|
||||
if (CharLenInBytes = 1) and (s[1] < ' ') then
|
||||
begin
|
||||
s := ' ';
|
||||
end;
|
||||
|
||||
ss := ss + s;
|
||||
textWidth := Canvas.TextWidth(ss);
|
||||
if textWidth > x then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue