myadm

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

commit 2db1fb806740d79cf6c48a2a2e18e810741c766f
parent a2c323275160946484ee8ddf4b70b1237ea72d47
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Thu,  3 Mar 2016 19:46:18 +0100

Clean up the current view in viewprev()

Diffstat:
Mcore.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/core.c b/core.c @@ -537,9 +537,13 @@ usedb(const Arg *arg) { void viewprev(const Arg *arg) { + View *v; + if(!selview->next) return; - selview = selview->next; + v = selview->next; + cleanupview(selview); + selview = v; } int