mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-03 20:14:40 +02:00
Fix UNC path with quotes handling in folder & file Open/Save dialog
Remove a workaround for double backslash that leads to problems. Originally, the double backslash workaround was needed to address #5368. But now, the app isn't stuck when such path is used, so the problem is gone. Fix #9582, close #9666
This commit is contained in:
parent
f44e6c4c06
commit
cd738bcff7
@ -391,18 +391,6 @@ private:
|
||||
return eq;
|
||||
},
|
||||
'\\');
|
||||
// If there are two or more double backslash, then change it to single.
|
||||
// Start from 2nd element to keep a path that starts from "\\".
|
||||
auto last = std::unique(fileName.begin() + 1, fileName.end(),
|
||||
[](generic_string::value_type a, generic_string::value_type b)
|
||||
{
|
||||
return a == b && a == '\\';
|
||||
});
|
||||
if (last != fileName.end())
|
||||
{
|
||||
fileName.erase(last, fileName.end());
|
||||
transformed = true;
|
||||
}
|
||||
return transformed;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user