myadm

Simple MySQL client for the terminal
git clone git://git.bitsmanent.org/myadm
Log | Files | Refs | README | LICENSE

commit 546013697420f292881c24e0037c804770583ce2
parent 967e6078ea9d87ee8573eefa8ebf6494bfc58b71
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Mon, 16 May 2016 23:32:44 +0200

Simplify reload()

Diffstat:
Mmyadm.c | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/myadm.c b/myadm.c @@ -703,15 +703,11 @@ quit(const Arg *arg) { void reload(const Arg *arg) { - char tmp[8]; - if(!selview->mode.func) return; selview->mode.func(); - if(selview->cur) { - snprintf(tmp, sizeof tmp, "%d", selview->cur); - ui_set("pos", tmp); - } + if(selview->cur) + ui_set("pos", "%d", selview->cur); } void