aboutsummaryrefslogtreecommitdiff
path: root/status.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2021-12-07 09:52:59 +0000
committerThomas Adam <thomas@xteddy.org>2021-12-07 09:52:59 +0000
commit138ffc7cb6225b8a6d54d771b0112635f0dbb42e (patch)
tree289b9f8c4ca207f92b6d81f9511c520969241120 /status.c
parentef676e1202a4d5c423d5bba2f8ecba1f768d8364 (diff)
parentd721fb2a9fd70c157abb8540d4c50fca654f9f4d (diff)
downloadrtmux-138ffc7cb6225b8a6d54d771b0112635f0dbb42e.tar.gz
rtmux-138ffc7cb6225b8a6d54d771b0112635f0dbb42e.tar.bz2
rtmux-138ffc7cb6225b8a6d54d771b0112635f0dbb42e.zip
Merge branch 'obsd-master' into master
Diffstat (limited to 'status.c')
-rw-r--r--status.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/status.c b/status.c
index d499eab8..bb57b3d6 100644
--- a/status.c
+++ b/status.c
@@ -748,6 +748,7 @@ status_prompt_redraw(struct client *c)
offset = 0;
if (pwidth > left)
pwidth = left;
+ c->prompt_cursor = start + c->prompt_index - offset;
width = 0;
for (i = 0; c->prompt_buffer[i].size != 0; i++) {