aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-08-30 17:35:47 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-08-30 17:35:47 +0000
commitfcb0e050094f9d864afd958537e11cedb13e40dc (patch)
tree5e9e4c069c6ef3d0f37dd9456b97deba9dbf37df /render.c
parentmain: use a timer FD to delay render refresh after client data (diff)
render: search box: fix glyph spacing
We're using the same font as in the terminal, so use the same glyph spacing.
Diffstat (limited to 'render.c')
-rw-r--r--render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render.c b/render.c
index 0be0d3d4..1611b972 100644
--- a/render.c
+++ b/render.c
@@ -754,7 +754,7 @@ render_search_box(struct terminal *term)
glyph->width, glyph->height);
pixman_image_unref(src);
- x += glyph->width;
+ x += term->cell_width;
}
if (term->search.cursor >= term->search.len)