commit ff9b34311722c494cdd88ef7b5b0b44765d570a5
parent 81b25be6f1f1148052aa0027a7e5f02ad335e1d4
Author: Claudio Alessi <smoppy@gmail.com>
Date: Wed, 24 Aug 2022 00:17:57 +0200
Fix a bug when calling histpush().
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/circo.c b/circo.c
@@ -623,17 +623,16 @@ cmdln_submit(const Arg *arg) {
logw(buf);
logw("\n");
+ histpush(sel->cmdbuf, sel->cmdlen);
sel->cmdlen = sel->cmdoff = sel->histlnoff = 0;
sel->cmdbuf[sel->cmdlen] = '\0';
sel->need_redraw |= REDRAW_CMDLN;
if(buf[0] == '/') {
- histpush(sel->cmdbuf, sel->cmdlen);
/* Note: network latency may cause visual glitches. */
parsecmd(buf);
}
else {
- histpush(sel->cmdbuf, sel->cmdlen);
if(sel == status)
bprintf(sel, "Cannot send text here.\n");
else if(!srv)