X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bam_tview.c;fp=bam_tview.c;h=1324815ed87af417f86953e7b19e67efecb67ff1;hb=77734b9975b7f86b4ce3e977729b0329c3414dd7;hp=4eea955ce05574051c60591dac6a44b5a1ad5edc;hpb=a9a8e7769267e5a39a10004f2e0a10bee9e33aaf;p=samtools.git diff --git a/bam_tview.c b/bam_tview.c index 4eea955..1324815 100644 --- a/bam_tview.c +++ b/bam_tview.c @@ -114,7 +114,6 @@ int tv_pl_func(uint32_t tid, uint32_t pos, int n, const bam_pileup1_t *pl, void if (!p->is_del) { if (tv->base_for == TV_BASE_COLOR_SPACE && (c = bam_aux_getCSi(p->b, p->qpos))) { - c = bam_aux_getCSi(p->b, p->qpos); // assume that if we found one color, we will be able to get the color error if (tv->is_dot && '-' == bam_aux_getCEi(p->b, p->qpos)) c = bam1_strand(p->b)? ',' : '.'; } else { @@ -304,7 +303,7 @@ static void tv_win_goto(tview_t *tv, int *tid, int *pos) int c = wgetch(tv->wgoto); wrefresh(tv->wgoto); if (c == KEY_BACKSPACE || c == '\010' || c == '\177') { - --l; + if(l > 0) --l; } else if (c == KEY_ENTER || c == '\012' || c == '\015') { int _tid = -1, _beg, _end; if (str[0] == '=') {