From e2a66df3b8545839d567543b480cd3c880b21cd0 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 24 Jan 2021 14:48:55 +0100 Subject: [PATCH] LFUN_FILE_OPEN: Strip quotes from argument (#12091) --- src/frontends/qt/GuiApplication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt/GuiApplication.cpp b/src/frontends/qt/GuiApplication.cpp index 32474023ef..90d25b2525 100644 --- a/src/frontends/qt/GuiApplication.cpp +++ b/src/frontends/qt/GuiApplication.cpp @@ -1751,7 +1751,7 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr) // current_view_ is not null. validateCurrentView(); // FIXME: create a new method shared with LFUN_HELP_OPEN. - string const fname = to_utf8(cmd.argument()); + string const fname = trim(to_utf8(cmd.argument()), "\""); bool const is_open = FileName::isAbsolute(fname) && theBufferList().getBuffer(FileName(fname)); if (!current_view_ -- 2.39.5