View Issue Details

IDProjectCategoryView StatusLast Update
0001645Double CommanderGraphical user interfacepublic2020-11-30 07:43
Reportercordylus Assigned ToAlexx2000  
PrioritynormalSeveritytrivialReproducibilityalways
Status closedResolutionfixed 
ProjectionnoneETAnone 
Product Version0.7.6 
Target Version0.8.0Fixed in Version0.8.0 
Summary0001645: The long name of a file or folder is truncated when it is the only file/folder on the drive
DescriptionIt begins to adapt the size of the cursor (that is limiting the filename) only after adding the second file. I suspect it has something to do with "Up", ".." entry, since it is not there when you are browsing the root of the drive, and the only file takes its place.
TagsNo tags attached.
Attached Files
bug1645.patch (822 bytes)   
Index: src/fileviews/ubrieffileview.pas
===================================================================
--- src/fileviews/ubrieffileview.pas	(revision 7605)
+++ src/fileviews/ubrieffileview.pas	(working copy)
@@ -137,12 +137,12 @@
 var
   I, J, L, M: Integer;
 begin
-  if not Assigned(FBriefView.FFiles) then Exit;
+  if not Assigned(FBriefView.FFiles) or (FBriefView.FFiles.Count = 0) then Exit;
   if gBriefViewMode = bvmFixedWidth then
     DefaultColWidth:= Min(ClientWidth, gBriefViewFixedWidth)
   else if gBriefViewMode = bvmFixedCount then
     DefaultColWidth:= ClientWidth div Max(1, gBriefViewFixedCount)
-  else if FBriefView.FFiles.Count < 2 then
+  else if (FBriefView.FFiles.Count = 1) and (FBriefView.FFiles[0].FSFile.Name = '..') then
     DefaultColWidth:= ClientWidth div 3
   else
     begin
bug1645.patch (822 bytes)   
Fixed in Revision7612
Operating system
Widgetset
Architecture

Activities

cordylus

2016-12-16 16:02

developer   ~0002032

Forgot to mention that this happens in the Brief view mode

cordylus

2017-06-02 11:19

developer   ~0002273

Also reproduces if you filter to one result when you are in the filesystem root.

Issue History

Date Modified Username Field Change
2016-12-01 16:36 cordylus New Issue
2016-12-16 16:02 cordylus Note Added: 0002032
2017-06-02 11:09 cordylus File Added: bug1645.patch
2017-06-02 11:19 cordylus Note Added: 0002273
2017-06-04 12:09 Alexx2000 Fixed in Revision => 7612
2017-06-04 12:09 Alexx2000 Assigned To => Alexx2000
2017-06-04 12:09 Alexx2000 Status new => resolved
2017-06-04 12:09 Alexx2000 Resolution open => fixed
2017-06-04 12:09 Alexx2000 Fixed in Version => 0.8.0
2017-06-04 12:09 Alexx2000 Target Version => 0.8.0
2020-11-30 07:43 Alexx2000 Status resolved => closed