mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-06 00:36:01 +01:00
redraw search result on NO_SEARCH
This commit is contained in:
parent
e98ec46bd1
commit
91a2c6d3d1
1 changed files with 9 additions and 3 deletions
12
zathura.c
12
zathura.c
|
@ -1867,6 +1867,8 @@ search(void* parameter)
|
|||
|
||||
search_item = g_strdup((char*) argument->data);
|
||||
}
|
||||
g_free(argument->data);
|
||||
g_free(argument);
|
||||
|
||||
g_static_mutex_lock(&(Zathura.Lock.pdf_obj_lock));
|
||||
if(!Zathura.PDF.document || !search_item || !strlen(search_item))
|
||||
|
@ -1905,6 +1907,7 @@ search(void* parameter)
|
|||
if(Zathura.Thread.search_thread_running == FALSE)
|
||||
{
|
||||
g_static_mutex_unlock(&(Zathura.Lock.search_lock));
|
||||
g_free(old_query);
|
||||
g_thread_exit(NULL);
|
||||
}
|
||||
g_static_mutex_unlock(&(Zathura.Lock.search_lock));
|
||||
|
@ -1932,9 +1935,12 @@ search(void* parameter)
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
g_free(argument->data);
|
||||
g_free(argument);
|
||||
else
|
||||
{
|
||||
Zathura.Search.draw = TRUE;
|
||||
g_free(argument->data);
|
||||
g_free(argument);
|
||||
}
|
||||
|
||||
/* draw results */
|
||||
if(results)
|
||||
|
|
Loading…
Reference in a new issue