mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-25 22:27:41 +00:00
parent
2c74f0a040
commit
f50a7058d6
@ -15,6 +15,7 @@ CHANGELOG
|
||||
curl localhost:6266 -H "x-api-key: $FZF_API_KEY" -d 'change-query(yo)'
|
||||
```
|
||||
- Added `toggle-header` action
|
||||
- Bug fixes
|
||||
|
||||
0.42.0
|
||||
------
|
||||
|
@ -781,7 +781,7 @@ func (t *Terminal) ansiLabelPrinter(str string, color *tui.ColorPair, fill bool)
|
||||
window.CPrint(*color, str)
|
||||
}
|
||||
}
|
||||
return printFn, len(text)
|
||||
return printFn, length
|
||||
}
|
||||
|
||||
// Printer that correctly handles ANSI color codes and tab characters
|
||||
|
@ -184,3 +184,10 @@ func TestRepeatToFill(t *testing.T) {
|
||||
t.Error("Expected:", strings.Repeat("abcde", 4)+"abcde"[:2])
|
||||
}
|
||||
}
|
||||
|
||||
func TestStringWidth(t *testing.T) {
|
||||
w := StringWidth("─")
|
||||
if w != 1 {
|
||||
t.Errorf("Expected: %d, Actual: %d", 1, w)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user