mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-28 10:02:14 +00:00
FIX: Limit tab title length for non ASCII symbols
This commit is contained in:
parent
d559fb9bf4
commit
3781bccbc2
1 changed files with 3 additions and 2 deletions
|
|
@ -112,6 +112,7 @@ implementation
|
|||
|
||||
uses
|
||||
WSExtCtrls,
|
||||
LCLProc,
|
||||
uGlobs
|
||||
{$IF DEFINED(LCLGTK2)}
|
||||
, GTKGlobals // for DblClickTime
|
||||
|
|
@ -146,8 +147,8 @@ procedure TFileViewPage.UpdateCaption(NewCaption: String);
|
|||
begin
|
||||
if NewCaption <> '' then
|
||||
begin
|
||||
if (tb_text_length_limit in gDirTabOptions) and (Length(NewCaption) > gDirTabLimit) then
|
||||
Caption := Copy(NewCaption, 1, gDirTabLimit) + '...'
|
||||
if (tb_text_length_limit in gDirTabOptions) and (UTF8Length(NewCaption) > gDirTabLimit) then
|
||||
Caption := UTF8Copy(NewCaption, 1, gDirTabLimit) + '...'
|
||||
else
|
||||
Caption := NewCaption;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue