...
This commit is contained in:
parent
f8c83519fe
commit
29a896f9d8
@ -95,7 +95,7 @@ func ansi_formatter(w io.Writer, style *chroma.Style, it chroma.Iterator) error
|
|||||||
if !entry.IsZero() {
|
if !entry.IsZero() {
|
||||||
if entry.Bold == chroma.Yes {
|
if entry.Bold == chroma.Yes {
|
||||||
before = append(before, '1', ';')
|
before = append(before, '1', ';')
|
||||||
after = append(after, '2', '2', ';')
|
after = append(after, '2', '2', '1', ';')
|
||||||
}
|
}
|
||||||
if entry.Underline == chroma.Yes {
|
if entry.Underline == chroma.Yes {
|
||||||
before = append(before, '4', ';')
|
before = append(before, '4', ';')
|
||||||
|
|||||||
@ -414,7 +414,7 @@ func (self *Handler) scroll_to_next_match(backwards, include_current_match bool)
|
|||||||
delta *= -1
|
delta *= -1
|
||||||
}
|
}
|
||||||
pos := self.scroll_pos
|
pos := self.scroll_pos
|
||||||
if self.logical_lines.IncrementScrollPosBy(&pos, offset) == 0 {
|
if offset != 0 && self.logical_lines.IncrementScrollPosBy(&pos, offset) == 0 {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
for {
|
for {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user