mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 00:03:39 -05:00
Truncate long lines in preview window
Add `:wrap` to --preview-window to wrap lines instead Close #756
This commit is contained in:
@@ -273,6 +273,14 @@ func (w *Window) Erase() {
|
||||
C.werase(w.win())
|
||||
}
|
||||
|
||||
func (w *Window) X() int {
|
||||
return int(C.getcurx(w.win()))
|
||||
}
|
||||
|
||||
func DoesAutoWrap() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (w *Window) Fill(str string) bool {
|
||||
return C.waddstr(w.win(), C.CString(str)) == C.OK
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user