commit 6adf079796b7bee280233742878c0754979c6d24
Author: Enrico Forestieri <[email protected]>
Date:   Sun Aug 21 23:33:01 2016 +0200

    Quote filenames used for forward-search with SumatraPDF
    
    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.
    
    See #10342.
---
 src/frontends/qt4/GuiPrefs.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/frontends/qt4/GuiPrefs.cpp b/src/frontends/qt4/GuiPrefs.cpp
index 26d0c28..996be49 100644
--- a/src/frontends/qt4/GuiPrefs.cpp
+++ b/src/frontends/qt4/GuiPrefs.cpp
@@ -420,7 +420,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\"");

Reply via email to