myadm

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

commit a52328ad69c2cec8fd6e5367b01f6c7c02b165d3
parent 35341f75e387c88ac3e7e117d809bc9fc60560bb
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Thu,  3 Mar 2016 17:14:27 +0100

Fix a bug in itempos()

Diffstat:
Mcore.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/core.c b/core.c @@ -406,6 +406,9 @@ itempos(const Arg *arg) { int pos = atoi(stfl_ipool_fromwc(ipool, stfl_get(selview->form, L"pos"))); char tmp[8]; + if(!selview->nitems) + return; + pos += arg->i; if(pos < 0) pos = 0;