Improve preview window rendering

- Fix incorrect display of the last line when more than a line is
  wrapped above
- Avoid unnecessary flickering of the window
This commit is contained in:
Junegunn Choi
2017-07-19 22:46:16 +09:00
parent 28810c178f
commit bc9d2abdb6
4 changed files with 21 additions and 6 deletions

View File

@@ -164,6 +164,10 @@ func (w *TcellWindow) X() int {
return w.lastX
}
func (w *TcellWindow) Y() int {
return w.lastY
}
func (r *FullscreenRenderer) DoesAutoWrap() bool {
return false
}