m/fzf
1
0
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:
Junegunn Choi
2016-12-05 02:13:47 +09:00
parent ab9ae4f643
commit a442fe0fd0
5 changed files with 91 additions and 37 deletions

View File

@@ -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
}