acme: Update tag after receiving menu/nomenu control event (#251)

This commit is contained in:
Martin Kühl 2019-04-05 18:45:56 +00:00 committed by Russ Cox
parent 0308e1f010
commit dfac95269a

View file

@ -790,10 +790,12 @@ out:
}else }else
if(strncmp(p, "nomenu", 6) == 0){ /* turn off automatic menu */ if(strncmp(p, "nomenu", 6) == 0){ /* turn off automatic menu */
w->filemenu = FALSE; w->filemenu = FALSE;
settag = TRUE;
m = 6; m = 6;
}else }else
if(strncmp(p, "menu", 4) == 0){ /* enable automatic menu */ if(strncmp(p, "menu", 4) == 0){ /* enable automatic menu */
w->filemenu = TRUE; w->filemenu = TRUE;
settag = TRUE;
m = 4; m = 4;
}else }else
if(strncmp(p, "cleartag", 8) == 0){ /* wipe tag right of bar */ if(strncmp(p, "cleartag", 8) == 0){ /* wipe tag right of bar */