mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 16:37:27 +00:00
...
This commit is contained in:
parent
7b16132b75
commit
18445e20ff
1 changed files with 2 additions and 3 deletions
|
|
@ -80,10 +80,9 @@ func clear_background(style *chroma.Style) *chroma.Style {
|
|||
return style
|
||||
}
|
||||
|
||||
const SGR_PREFIX = "\033["
|
||||
const SGR_SUFFIX = "m"
|
||||
|
||||
func ansi_formatter(w io.Writer, style *chroma.Style, it chroma.Iterator) error {
|
||||
const SGR_PREFIX = "\033["
|
||||
const SGR_SUFFIX = "m"
|
||||
style = clear_background(style)
|
||||
before, after := make([]byte, 0, 64), make([]byte, 0, 64)
|
||||
nl := []byte{'\n'}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue