diff options
Diffstat (limited to 'input_field.c')
| -rw-r--r-- | input_field.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/input_field.c b/input_field.c index 328254e..7df1799 100644 --- a/input_field.c +++ b/input_field.c @@ -34,8 +34,8 @@ void filter_items(client_state* state) { float offset = 0; array_for_all(item_display_t, display, state->filtered_items) { display->offset = offset; - if (state->lines > 0) offset += state->line_height; - else offset += display->item->pixel_len + state->horizontal_spacing; + if (state->lines) offset += state->line_height; + else offset += display->item->pixel_len + state->horizontal_spacing * 2.0f; } } |
