commit 96d0cdaa7b45c953d14eddaedd9a527d91288de0 parent fd32de627c3e2e0e851fc2c3e044bb0e0e0ecf5c Author: Claudio Alessi <smoppy@gmail.com> Date: Thu, 14 Apr 2016 22:30:58 +0200 Simplify viewtable() Diffstat:
M | myadm.c | | | 4 | +--- |
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/myadm.c b/myadm.c @@ -707,9 +707,7 @@ viewprev(const Arg *arg) { void viewtable(const Arg *arg) { - Item *choice = getitem(0); - - if(!(choice && choice->ncols)) { + if(!getitem(0)) { ui_set("status", "No table selected."); return; }