mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-14 17:53:47 +01:00
Fix bookmarks completion
My previous patch a206e5bb1f
(Save zoom level in the bookmarks file) added third varible with special
meaning into the bookmarks file. Add it to the exception list.
Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
Signed-off-by: Sebastian Ramacher <s.ramacher@gmx.at>
This commit is contained in:
parent
a206e5bb1f
commit
14ef558b0d
@ -1420,7 +1420,8 @@ open_file(char* path, char* password)
|
|||||||
|
|
||||||
for(i = 0; i < number_of_keys; i++)
|
for(i = 0; i < number_of_keys; i++)
|
||||||
{
|
{
|
||||||
if(strcmp(keys[i], BM_PAGE_ENTRY) && strcmp(keys[i], BM_PAGE_OFFSET))
|
if(strcmp(keys[i], BM_PAGE_ENTRY) && strcmp(keys[i], BM_PAGE_OFFSET)
|
||||||
|
&& strcmp(keys[i], BM_PAGE_SCALE))
|
||||||
{
|
{
|
||||||
Zathura.Bookmarks.bookmarks = realloc(Zathura.Bookmarks.bookmarks,
|
Zathura.Bookmarks.bookmarks = realloc(Zathura.Bookmarks.bookmarks,
|
||||||
(Zathura.Bookmarks.number_of_bookmarks + 1) * sizeof(Bookmark));
|
(Zathura.Bookmarks.number_of_bookmarks + 1) * sizeof(Bookmark));
|
||||||
|
Loading…
Reference in New Issue
Block a user