mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: when renaming was incorrect detect length of filename
This commit is contained in:
parent
8504596590
commit
d7efdf117d
1 changed files with 4 additions and 2 deletions
|
|
@ -1426,9 +1426,11 @@ var
|
|||
lenEdtText, lenEdtTextExt, i: Integer;
|
||||
seperatorSet: set of AnsiChar;
|
||||
ca:char;
|
||||
s:string;
|
||||
begin
|
||||
FRenFile.LenFul := UTF8Length(edtRename.Text);
|
||||
FRenFile.LenExt := UTF8Length(ExtractFileExt(edtRename.Text));
|
||||
s:=AFile.Name;
|
||||
FRenFile.LenFul := UTF8Length(s);
|
||||
FRenFile.LenExt := UTF8Length(ExtractFileExt(s));
|
||||
FRenFile.LenNam := FRenFile.LenFul-FRenFile.LenExt;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue