Fix eshell/clear not working if the output has a small line count
commit2765945d616f9661dd0aa641f4ecd328dd8768d7
authorVibhav Pant <vibhavp@gmail.com>
Wed, 28 Oct 2015 17:07:34 +0000 (28 22:37 +0530)
committerVibhav Pant <vibhavp@gmail.com>
Wed, 28 Oct 2015 21:38:10 +0000 (29 03:08 +0530)
tree1ba0fa605084786316bd3d8e4ccc0ea209009fa2
parentd8f82d8199198aa0133aa4dea75643f13e551d26
Fix eshell/clear not working if the output has a small line count

* lisp/eshell/esh-mode.el: (eshell/clear): Use (window-size) as the
number of newlines to be inserted. This fixes the issue where
eshell/clear wouldn't work if the prompt was not at the bottom of the
window, and the output wasn't too long.
lisp/eshell/esh-mode.el