X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bam_tview.c;h=24cd12a5bf743dba2948ee92bd9c5c490c30e4ce;hb=d73a1b3b94255044787c0e4bfeba37df66e99770;hp=7b326fc40e7bf276b7adc3848c0667d5628a68ad;hpb=7795f54fa8aed1e0b1edff61890e9fe25fdb7fe9;p=samtools.git diff --git a/bam_tview.c b/bam_tview.c index 7b326fc..24cd12a 100644 --- a/bam_tview.c +++ b/bam_tview.c @@ -292,7 +292,7 @@ static void tv_win_goto(tview_t *tv, int *tid, int *pos) } else if (c == KEY_ENTER || c == '\012' || c == '\015') { int _tid = -1, _beg, _end; if (str[0] == '=') { - _beg = strtol(str+1, &p, 10); + _beg = strtol(str+1, &p, 10) - 1; if (_beg > 0) { *pos = _beg; return;