From 14ef558b0d16f4daf986cb45d021255336ffe5cc Mon Sep 17 00:00:00 2001 From: Pavel Borzenkov Date: Tue, 5 Jul 2011 16:29:06 +0400 Subject: [PATCH] Fix bookmarks completion My previous patch a206e5bb1f9bfed27ba0d8cb3fa782fe211017bf (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 Signed-off-by: Sebastian Ramacher --- zathura.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zathura.c b/zathura.c index 1cb651c..e510b5e 100644 --- a/zathura.c +++ b/zathura.c @@ -1420,7 +1420,8 @@ open_file(char* path, char* password) 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.number_of_bookmarks + 1) * sizeof(Bookmark));