aboutsummaryrefslogtreecommitdiff
path: root/status.c
diff options
context:
space:
mode:
authornicm <nicm>2021-11-15 10:58:13 +0000
committernicm <nicm>2021-11-15 10:58:13 +0000
commitb55f0ac6b94449b3372f0d1737fcf967f4fa13a2 (patch)
tree7990e52a80163eeaa327068efa9411de02a148f8 /status.c
parentcb8a0d83fbaa2ae49c06105cb94d247ef20ed91e (diff)
downloadrtmux-b55f0ac6b94449b3372f0d1737fcf967f4fa13a2.tar.gz
rtmux-b55f0ac6b94449b3372f0d1737fcf967f4fa13a2.tar.bz2
rtmux-b55f0ac6b94449b3372f0d1737fcf967f4fa13a2.zip
Leave the hardware cursor at the position of the selected line in choose
modes and current editing position and at the command prompt. It is invisible but this is helpful for people using screen readers. GitHub issue 2970.
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++) {