Skip to content

Commit 712475f

Browse files
author
slavara
committed
fix typo...
1 parent 3b31e19 commit 712475f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

External/Plugins/ASCompletion/Context/ASContext.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,6 +1521,7 @@ static public string NormalizeFilename(string path)
15211521
{
15221522
if (string.IsNullOrEmpty(path)) return "";
15231523
path = path.Trim();
1524+
if (path.Length == 0) return path;
15241525
if (doPathNormalization)
15251526
path = path.Replace(dirAltSeparator, dirSeparator);
15261527
path = path.Replace(dirSeparator + dirSeparator, dirSeparator);
@@ -1530,6 +1531,7 @@ static public string NormalizePath(string path)
15301531
{
15311532
if (string.IsNullOrEmpty(path)) return "";
15321533
path = path.Trim();
1534+
if (path.Length == 0) return path;
15331535
if (doPathNormalization)
15341536
path = path.Replace(dirAltSeparator, dirSeparator);
15351537
if (!path.EndsWith(dirSeparator))

0 commit comments

Comments
 (0)