File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
src/cascadia/TerminalControl Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -1443,11 +1443,8 @@ namespace winrt::Microsoft::Terminal::Control::implementation
1443
1443
using namespace ::Microsoft::Console::Utils;
1444
1444
1445
1445
auto filtered = FilterStringForPaste (hstr, CarriageReturnNewline | ControlCodes);
1446
- std::filesystem::path path{ filtered };
1447
-
1448
- if (!path.empty () && _settings->PathTranslationStyle () != PathTranslationStyle::None)
1446
+ if (!filtered.empty () && _settings->PathTranslationStyle () != PathTranslationStyle::None)
1449
1447
{
1450
- filtered = path.wstring ();
1451
1448
// Explorer puts paths wrapped in double quotes on the clipboard. The translation routine expects it to be without quotes.
1452
1449
if (!filtered.empty () && filtered.front () == ' \" ' )
1453
1450
{
You can’t perform that action at this time.
0 commit comments