mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-15 05:53:45 +01:00
Updated completion
This commit is contained in:
parent
6293069f54
commit
66ebc2e198
@ -2572,9 +2572,10 @@ isc_completion(Argument* argument)
|
|||||||
|
|
||||||
for(i = 0; i < n_items; i++)
|
for(i = 0; i < n_items; i++)
|
||||||
{
|
{
|
||||||
if((i >= (current_item - lh) && (i <= current_item + uh)) ||
|
if((n_items > 1) && (
|
||||||
|
(i >= (current_item - lh) && (i <= current_item + uh)) ||
|
||||||
(i < n_completion_items && current_item < lh) ||
|
(i < n_completion_items && current_item < lh) ||
|
||||||
(i >= (n_items - n_completion_items) && (current_item >= (n_items - uh)))
|
(i >= (n_items - n_completion_items) && (current_item >= (n_items - uh))))
|
||||||
)
|
)
|
||||||
gtk_widget_show(rows[i].row);
|
gtk_widget_show(rows[i].row);
|
||||||
else
|
else
|
||||||
@ -2582,7 +2583,7 @@ isc_completion(Argument* argument)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(command_mode)
|
if(command_mode)
|
||||||
temp = g_strconcat(":", rows[current_item].command, NULL);
|
temp = g_strconcat(":", rows[current_item].command, (n_items == 1) ? " " : NULL, NULL);
|
||||||
else
|
else
|
||||||
temp = g_strconcat(":", previous_command, " ", rows[current_item].command, NULL);
|
temp = g_strconcat(":", previous_command, " ", rows[current_item].command, NULL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user