mirror of
https://github.com/taigrr/wtf
synced 2026-04-02 02:28:55 -07:00
Close #204. Add Trello dependency to /vendor
This commit is contained in:
5
vendor/github.com/rivo/tview/textview.go
generated
vendored
5
vendor/github.com/rivo/tview/textview.go
generated
vendored
@@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"regexp"
|
||||
"sync"
|
||||
"unicode"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/gdamore/tcell"
|
||||
@@ -659,7 +660,7 @@ func (t *TextView) Draw(screen tcell.Screen) {
|
||||
t.pageSize = height
|
||||
|
||||
// If the width has changed, we need to reindex.
|
||||
if width != t.lastWidth {
|
||||
if width != t.lastWidth && t.wrap {
|
||||
t.index = nil
|
||||
}
|
||||
t.lastWidth = width
|
||||
@@ -815,7 +816,7 @@ func (t *TextView) Draw(screen tcell.Screen) {
|
||||
|
||||
// Draw the character.
|
||||
var comb []rune
|
||||
if len(runeSequence) > 1 {
|
||||
if len(runeSequence) > 1 && !unicode.IsControl(runeSequence[1]) {
|
||||
// Allocate space for the combining characters only when necessary.
|
||||
comb = make([]rune, len(runeSequence)-1)
|
||||
copy(comb, runeSequence[1:])
|
||||
|
||||
Reference in New Issue
Block a user