google / ci_edit

A terminal text editor with mouse support and ctrl+Q to quit.
Apache License 2.0
223 stars 54 forks source link

Delay in updation of status bar #186

Closed sauravchirania closed 5 years ago

sauravchirania commented 5 years ago

This is to continue issue #182. Since I couldn't reopen it, I am starting a new issue.

Some work has already been done in 72fd6d4 to fix it, but I believe that the status bar shouldn't only get cleared on pressing backspace or carriage return, but also on pressing of any other key that deletes the selected text.

Steps to reproduce:

Open ci_edit and type some text. Use CTRL+A to select all text (status bar also gets updated to show the current selection mode) Press the 'a' key.

This deletes all the selected text and we are left with only the character 'a' written on screen. But, status bar still shows the previous selection mode (select all). I would expect the status bar to show no selection. @dschuyler , what do you think?