Skip to content

Commit abf4f46

Browse files
authored
Merge pull request #25 from Neloreck/fix-spaces-in-names
[FIX] Support opening filenames with spaces from tools panel.
2 parents 8302af0 + 7fc384d commit abf4f46

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

LuaDkmDebuggerCommon/ToolWindows/ScriptListWindowControl.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ private void ListViewItem_DoubleClick(object sender, RoutedEventArgs args)
4949

5050
var cmdobj = _state.dte.Commands.Item("File.OpenFile");
5151

52-
string name = scriptEntry.path;
52+
// Support filenames and directories with whitespaces in path.
53+
string name = $"\"{scriptEntry.path}\"";
5354
object none = null;
5455

5556
_state.dte.Commands.Raise(cmdobj.Guid, cmdobj.ID, name, none);

0 commit comments

Comments
 (0)