Commit 69f41457 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Divide by 2 as intended

parent 45f84d95
...@@ -434,8 +434,8 @@ girara_isc_completion(girara_session_t* session, girara_argument_t* argument, gi ...@@ -434,8 +434,8 @@ girara_isc_completion(girara_session_t* session, girara_argument_t* argument, gi
/* hide other items */ /* hide other items */
unsigned int n_completion_items = 15; unsigned int n_completion_items = 15;
girara_setting_get(session, "n-completion-items", &n_completion_items); girara_setting_get(session, "n-completion-items", &n_completion_items);
unsigned int uh = ceil( n_completion_items / 2); unsigned int uh = ceil(n_completion_items / 2.0);
unsigned int lh = floor(n_completion_items / 2); unsigned int lh = floor(n_completion_items / 2.0);
unsigned int current_item = g_list_position(entries, entries_current); unsigned int current_item = g_list_position(entries, entries_current);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment