From 52d32c4982f859b3ed5b57d4ab559c365aa935b8 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));