mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-31 00:54:56 +01:00
Fail if no open instance has been found
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
5640bc78ec
commit
2b446f4182
1 changed files with 4 additions and 1 deletions
5
main.c
5
main.c
|
@ -96,12 +96,15 @@ main(int argc, char* argv[])
|
||||||
|
|
||||||
if (synctex_fwd != NULL) {
|
if (synctex_fwd != NULL) {
|
||||||
if (argc != 2) {
|
if (argc != 2) {
|
||||||
girara_error(_("Too many arguments or missing filename while running with --syntex-forward"));
|
girara_error("Too many arguments or missing filename while running with --syntex-forward");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (synctex_forward_position(argv[1], synctex_fwd) == true) {
|
if (synctex_forward_position(argv[1], synctex_fwd) == true) {
|
||||||
return 0;
|
return 0;
|
||||||
|
} else {
|
||||||
|
girara_error("Could not find open instance for '%s'., argv[1]);
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue