]> git.lyx.org Git - features.git/commitdiff
Quote filenames used for forward-search with SumatraPDF
authorEnrico Forestieri <forenr@lyx.org>
Thu, 27 Oct 2016 02:16:04 +0000 (04:16 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 27 Oct 2016 02:16:04 +0000 (04:16 +0200)
Single quotes are special to our parser and must be either escaped or
quoted if they are part of a filename, otherwise they are stripped out.

Fixes #10342.

src/frontends/qt4/GuiPrefs.cpp
status.22x

index 1c9a1bc34b3b0d5f8bf4d38005b2b1d9fc0b9124..d9c4207c35cd985e17c273246be3837b4187f9b0 100644 (file)
@@ -421,7 +421,7 @@ PrefOutput::PrefOutput(GuiPreferences * form)
        dviCB->addItem("synctex view -i $$n:0:$$t -o $$o -x \"evince -i %{page+1} $$o\"");
        pdfCB->addItem("");
        pdfCB->addItem("CMCDDE SUMATRA control [ForwardSearch(\\\"$$o\\\",\\\"$$t\\\",$$n,0,0,1)]");
-       pdfCB->addItem("SumatraPDF -reuse-instance $$o -forward-search $$t $$n");
+       pdfCB->addItem("SumatraPDF -reuse-instance \"$$o\" -forward-search \"$$t\" $$n");
        pdfCB->addItem("synctex view -i $$n:0:$$t -o $$o -x \"xpdf -raise -remote $$t.tmp $$o %{page+1}\"");
        pdfCB->addItem("okular --unique \"$$o#src:$$n $$f\"");
        pdfCB->addItem("qpdfview --unique \"$$o#src:$$f:$$n:0\"");
index 294480a0363ced52715bc7749a4bea9097d7a5d8..7ec6a4e0de1ea98bcd9ccb9a69e2f174078b468b 100644 (file)
@@ -69,6 +69,8 @@ What's new
 
 - Make *-lyxformat-* backup files use .lyx~ extension.
 
+- Quote filenames used for forward-search with SumatraPDF (bug 10342).
+
 
 * LYX2LYX