mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +00:00
LFUN_FILE_OPEN: Strip quotes from argument (#12091)
This commit is contained in:
parent
bf813db992
commit
e2a66df3b8
@ -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_
|
||||
|
Loading…
x
Reference in New Issue
Block a user