aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAlexei Andreanov <aalexei@ibs.re.kr>2021-06-17 11:24:41 +0900
committerAlexei Andreanov <aalexei@ibs.re.kr>2021-06-17 11:24:41 +0900
commit5700d2f77bd356aede9bbc33d197f9c5e6914cd1 (patch)
tree1ebc971dc31195f953405f04d10e9ea3c7af18e3 /plugins
parent3d3c48f3215c1d663abafefd78a0ca595565df0e (diff)
downloadlite-xl-plugins-5700d2f77bd356aede9bbc33d197f9c5e6914cd1.tar.gz
lite-xl-plugins-5700d2f77bd356aede9bbc33d197f9c5e6914cd1.zip
plugins/pdfview.lua:
1. bugfix: screen pdffile with "" to handle spaces (and the like) in the absolute file name correctly
Diffstat (limited to 'plugins')
-rw-r--r--plugins/pdfview.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/pdfview.lua b/plugins/pdfview.lua
index 41e8ad0..743c6ec 100644
--- a/plugins/pdfview.lua
+++ b/plugins/pdfview.lua
@@ -20,7 +20,7 @@ command.add("core.docview", {
local texfile = av:get_filename()
texfile = string.gsub(texfile, '~', homedir)
-- Construct the PDF file name out of the (La)Tex filename
- local pdffile = string.gsub(texfile, ".tex", ".pdf")
+ local pdffile = "\"" .. string.gsub(texfile, ".tex", ".pdf") .. "\""
-- PDF viewer - is there any provided by the environment
local pdfcmd = os.getenv("LITE_PDF_VIEWER")