@@ -387,22 +387,22 @@ func (t *tScreen) prepareUnderlines() {
387
387
// practice since these were introduced at about the same time.
388
388
if t .ti .UnderlineColor != "" {
389
389
t .underColor = t .ti .UnderlineColor
390
- } else if t .ti . CurlyUnderline != "" {
390
+ } else if t .curlyUnder != "" {
391
391
t .underColor = "\x1b [58:5:%p1%dm"
392
392
}
393
393
if t .ti .UnderlineColorRGB != "" {
394
394
// An interesting wart here is that in order to facilitate
395
395
// using just a single parameter, the Setulc parameter takes
396
396
// the 24-bit color as an integer rather than separate bytes.
397
397
// This matches the "new" style direct color approach that
398
- // ncurses took, even though everyone else when another way.
398
+ // ncurses took, even though everyone else went another way.
399
399
t .underRGB = t .ti .UnderlineColorRGB
400
- } else if t .ti . CurlyUnderline != "" {
400
+ } else if t .underColor != "" {
401
401
t .underRGB = "\x1b [58:2::%p1%d:%p2%d:%p3%dm"
402
402
}
403
403
if t .ti .UnderlineColorReset != "" {
404
404
t .underFg = t .ti .UnderlineColorReset
405
- } else if t .ti . CurlyUnderline != "" {
405
+ } else if t .curlyUnder != "" {
406
406
t .underFg = "\x1b [59m"
407
407
}
408
408
}
@@ -1529,15 +1529,15 @@ func (t *tScreen) parseClipboard(buf *bytes.Buffer, evs *[]Event) (bool, bool) {
1529
1529
1530
1530
for _ , c := range b {
1531
1531
// valid base64 digits
1532
- if ( state == 0 ) {
1532
+ if state == 0 {
1533
1533
if (c >= 'A' && c <= 'Z' ) || (c >= 'a' && c <= 'z' ) || (c >= '0' && c <= '9' ) || (c == '+' ) || (c == '/' ) || (c == '=' ) {
1534
1534
continue
1535
1535
}
1536
- if ( c == '\x1b' ) {
1536
+ if c == '\x1b' {
1537
1537
state = 1
1538
1538
continue
1539
1539
}
1540
- if ( c == '\a' ) {
1540
+ if c == '\a' {
1541
1541
// matched with BEL instead of ST
1542
1542
b = b [:len (b )- 1 ] // drop the trailing BEL
1543
1543
decoded := make ([]byte , base64 .StdEncoding .DecodedLen (len (b )))
@@ -1549,8 +1549,8 @@ func (t *tScreen) parseClipboard(buf *bytes.Buffer, evs *[]Event) (bool, bool) {
1549
1549
}
1550
1550
return false , false
1551
1551
}
1552
- if ( state == 1 ) {
1553
- if ( c == '\\' ) {
1552
+ if state == 1 {
1553
+ if c == '\\' {
1554
1554
b = b [:len (b )- 2 ] // drop the trailing ST (\x1b\\)
1555
1555
// now decode the data
1556
1556
decoded := make ([]byte , base64 .StdEncoding .DecodedLen (len (b )))
0 commit comments