mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Amend f426470a
The synctex option can also be specified by a single dash and any value different from zero will do.
This commit is contained in:
parent
8319bdbbbe
commit
90551a03ac
@ -1119,8 +1119,10 @@ bool Buffer::isSyncTeXenabled() const
|
||||
const string dest = c.to().substr(0,3);
|
||||
if (dest == "dvi" || dest == "pdf") {
|
||||
const string cmd = c.command();
|
||||
enabled |= cmd.find("--synctex=1") != string::npos;
|
||||
if (enabled) break;
|
||||
enabled |= cmd.find("-synctex=") != string::npos
|
||||
&& cmd.find("-synctex=0") == string::npos;
|
||||
if (enabled)
|
||||
break;
|
||||
}
|
||||
}
|
||||
return enabled;
|
||||
|
Loading…
Reference in New Issue
Block a user