projects
/
samtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge commit 'upstream/0.1.9'
[samtools.git]
/
bam_tview.c
diff --git
a/bam_tview.c
b/bam_tview.c
index 7b326fc40e7bf276b7adc3848c0667d5628a68ad..e48afa7bd4add26404fecc04d6548e7b3989927b 100644
(file)
--- a/
bam_tview.c
+++ b/
bam_tview.c
@@
-109,7
+109,7
@@
int tv_pl_func(uint32_t tid, uint32_t pos, int n, const bam_pileup1_t *pl, void
if (tv->is_dot && toupper(c) == toupper(rb)) c = bam1_strand(p->b)? ',' : '.';
}
}
if (tv->is_dot && toupper(c) == toupper(rb)) c = bam1_strand(p->b)? ',' : '.';
}
}
- } else c = '*';
+ } else c =
p->is_refskip? (bam1_strand(p->b)? '<' : '>') :
'*';
} else { // padding
if (j > p->indel) c = '*';
else { // insertion
} else { // padding
if (j > p->indel) c = '*';
else { // insertion
@@
-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] == '=') {
} 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;
if (_beg > 0) {
*pos = _beg;
return;