End moves the viewport to the end of the buffer
()
| 1693 | |
| 1694 | // End moves the viewport to the end of the buffer |
| 1695 | func (h *BufPane) End() bool { |
| 1696 | v := h.GetView() |
| 1697 | v.StartLine = h.Scroll(h.SLocFromLoc(h.Buf.End()), -h.BufView().Height+1) |
| 1698 | h.SetView(v) |
| 1699 | return true |
| 1700 | } |
| 1701 | |
| 1702 | // PageUp scrolls the view up a page |
| 1703 | func (h *BufPane) PageUp() bool { |
no test coverage detected