mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 20:23:49 +01:00
Replace $PAGE first (fixes #328)
This commit is contained in:
parent
84f2b4485f
commit
ca80f73449
@ -556,10 +556,9 @@ cmd_exec(girara_session_t* session, girara_list_t* argument_list)
|
||||
g_ascii_dtostr(page_buf, G_ASCII_DTOSTR_BUF_SIZE, page+1);
|
||||
|
||||
GIRARA_LIST_FOREACH_BODY_WITH_ITER(argument_list, char*, iter, value,
|
||||
char* r = girara_replace_substring(value, "$FILE", path);
|
||||
|
||||
char* r = girara_replace_substring(value, "$PAGE", page_buf);
|
||||
if (r != NULL) {
|
||||
char* s = girara_replace_substring(r, "$PAGE", page_buf);
|
||||
char* s = girara_replace_substring(r, "$FILE", path);
|
||||
g_free(r);
|
||||
|
||||
if (s != NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user