aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-01-03 11:08:51 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-01-03 11:08:51 +0000
commit709dbfe18b5a6e74dde11e021a8cea91ad9464f5 (patch)
treef8fcd5a7bb48dcbca6c489f19db9bc655ff24a7e
parentwayland: term_visual_focus_{in,out} handles already being focused/defocused (diff)
parentrender: use a unique buffer cookie for the 'search' surface (diff)
Merge branch 'master' into visual-focus
-rw-r--r--render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render.c b/render.c
index addb8d7a..47017ea4 100644
--- a/render.c
+++ b/render.c
@@ -884,7 +884,7 @@ render_search_box(struct terminal *term)
const int width = min(term->width, 2 * margin + max(20, term->search.len) * term->cell_width);
const int height = min(term->height, 2 * margin + 1 * term->cell_height);
- unsigned long cookie = (uintptr_t)term;
+ unsigned long cookie = (uintptr_t)term + 1;
struct buffer *buf = shm_get_buffer(term->wl->shm, width, height, cookie);
/* Background - yellow on empty/match, red on mismatch */