c_digmsg(): (fix): if `digmsg' input is not fully consumed..
commit1091b026c9c8bcd26ce95aa90e7327757f9c0f32
authorSteffen Nurpmeso <steffen@sdaoden.eu>
Sat, 17 Apr 2021 22:17:16 +0000 (18 00:17 +0200)
committerSteffen Nurpmeso <steffen@sdaoden.eu>
Sat, 17 Apr 2021 22:26:28 +0000 (18 00:26 +0200)
tree648b2a2f886e2adf1984dfd10cf130f4b73f4c84
parentbbe6832b885830abfad5693c69d430f2e1e6aee5
c_digmsg(): (fix): if `digmsg' input is not fully consumed..

Do not (likely) crash when 'digmsg remove' removes a digmsg object
that is opened on a message and that still has valid input to be
consumed -- in that case an overlay pointer is set that is
detected and used by go_input() (if nothing else overlays this, of
course, this all is a bit complicated and should be event based
and emit LineCompletedEvents etc., like stated a billion times).

The fix is of course to reset the overlay in this case.
Adjust the manual to not only show in example but also state that
all input must be consumed when asking a `digmsg' object
a question.
nail.1
src/mx/dig-msg.c