summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2008-08-23 22:28:00 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2008-08-23 22:28:00 +0200
commit182fe0717f8e7fefd1e5c1eb42968fd29e15156f (patch)
treeb7351629ca81d0593e705f646b4c8da99d4e7112
parent1a693cd2a62e228a3c255d741c10b68306886b73 (diff)
downloadtuxcmd-182fe0717f8e7fefd1e5c1eb42968fd29e15156f.tar.xz
Fix filetype recognition for dot files
-rw-r--r--UFileAssoc.pas4
1 files changed, 2 insertions, 2 deletions
diff --git a/UFileAssoc.pas b/UFileAssoc.pas
index 923ecac..f08c1ed 100644
--- a/UFileAssoc.pas
+++ b/UFileAssoc.pas
@@ -168,7 +168,7 @@ var Ext, s: string;
begin
Result := nil;
MaxFound := 0;
- if (Pos('.', Filename) > 1) and (LastDelimiter('.', Filename) < Length(Filename)) then begin
+ if (Pos('.', Filename) > 0) and (LastDelimiter('.', Filename) < Length(Filename)) then begin
Ext := WideUpperCase(Trim(Copy(Filename, Pos('.', Filename), Length(Filename) - Pos('.', Filename) + 1)));
if PluginList.Count > 0 then
for i := 0 to PluginList.Count - 1 do
@@ -198,7 +198,7 @@ var Ext, s: string;
begin
Result := nil;
MaxFound := 0;
- if (Pos('.', Filename) > 1) and (LastDelimiter('.', Filename) < Length(Filename)) then begin
+ if (Pos('.', Filename) > 0) and (LastDelimiter('.', Filename) < Length(Filename)) then begin
Ext := WideUpperCase(Trim(Copy(Filename, Pos('.', Filename), Length(Filename) - Pos('.', Filename) + 1)));
if AssocList.Count > 0 then
for i := 0 to AssocList.Count - 1 do