kurku

Readline: zero width region highlight

What is broken?

Consider the situation when current region defined by rl_mark and rl_point is of width zero

aka rl_mark == rl_point

               @
readline$ some user input
               ^

Doing Cx Cx causes readline to highlight an active region. But the highlight goes further than expected (basically to the end of line).

Expected: nothing highlighted.

               @
readline$ some user input
               ^
-------------------------

Actually: highlighting continues to the end of the line.

               @
readline$ some user input
               ^
---------------==========

Status

fixed by me, merged upstream

https://lists.gnu.org/archive/html/bug-readline/2026-07/msg00000.html https://lists.gnu.org/archive/html/bug-readline/2026-07/msg00001.html