patch-zathura_shortcuts.c - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
 (HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
       patch-zathura_shortcuts.c
       ---
            1 $NetBSD$
            2 
            3 --- zathura/shortcuts.c.orig    2017-01-11 21:05:00.000000000 +0000
            4 +++ zathura/shortcuts.c
            5 @@ -180,10 +180,8 @@ sc_focus_inputbar(girara_session_t* sess
            6          return false;
            7        }
            8  
            9 -      char* path = g_path_get_dirname(file_path);
           10 -      char* escaped = girara_escape_string(path);
           11 -      char* tmp  = g_strdup_printf("%s%s/", (char*) argument->data, (g_strcmp0(path, "/") == 0) ? "" : escaped);
           12 -      g_free(path);
           13 +      char* escaped = girara_escape_string(file_path);
           14 +      char* tmp  = g_strdup_printf("%s%s", (char*) argument->data, (g_strcmp0(file_path, "/") == 0) ? "" : escaped);
           15        g_free(escaped);
           16  
           17        gtk_entry_set_text(session->gtk.inputbar_entry, tmp);