diff options
author | nicm <nicm> | 2020-03-19 14:23:58 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-03-19 14:23:58 +0000 |
commit | 74ed17d41bb0f3113052fb4cccaef341d53f9e5b (patch) | |
tree | dfe63494eff7fc6b646586b2e6e40cf94c1183ca | |
parent | de34436d4c2d4ba72f37b80ed3804d057b95c0dc (diff) | |
download | rtmux-74ed17d41bb0f3113052fb4cccaef341d53f9e5b.tar.gz rtmux-74ed17d41bb0f3113052fb4cccaef341d53f9e5b.tar.bz2 rtmux-74ed17d41bb0f3113052fb4cccaef341d53f9e5b.zip |
Little bit of tidying.
-rw-r--r-- | menu.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -138,16 +138,13 @@ menu_draw_cb(struct client *c, __unused struct screen_redraw_ctx *ctx0) struct screen *s = &md->s; struct menu *menu = md->menu; struct screen_write_ctx ctx; - u_int i, px, py; + u_int i, px = md->px, py = md->py; screen_write_start(&ctx, NULL, s); screen_write_clearscreen(&ctx, 8); screen_write_menu(&ctx, menu, md->choice); screen_write_stop(&ctx); - px = md->px; - py = md->py; - for (i = 0; i < screen_size_y(&md->s); i++) tty_draw_line(tty, NULL, s, 0, i, menu->width + 4, px, py + i); @@ -270,7 +267,6 @@ chosen: pr = cmd_parse_from_string(item->command, NULL); switch (pr->status) { case CMD_PARSE_EMPTY: - new_item = NULL; break; case CMD_PARSE_ERROR: new_item = cmdq_get_error(pr->error); |