mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-17 07:43:39 -05:00
Update ANSI processor to ignore ^N and ^O
This reverts commit 02c6ad0e59.
This commit is contained in:
@@ -682,13 +682,7 @@ func (w *Window) Erase() {
|
||||
}
|
||||
|
||||
func (w *Window) Fill(str string) bool {
|
||||
return C.waddstr(w.win, C.CString(strings.Map(func(r rune) rune {
|
||||
// Remove ^N and ^O (set and unset altcharset)
|
||||
if r == 14 || r == 15 {
|
||||
return -1
|
||||
}
|
||||
return r
|
||||
}, str))) == C.OK
|
||||
return C.waddstr(w.win, C.CString(str)) == C.OK
|
||||
}
|
||||
|
||||
func (w *Window) CFill(str string, fg int, bg int, a Attr) bool {
|
||||
|
||||
Reference in New Issue
Block a user