]> code.delx.au - gnu-emacs-elpa/commit
ivy: fix ivy--resize-minibuffer-to-fit for small delta
authorFelix Lange <fjl@twurst.com>
Wed, 6 Jan 2016 22:28:24 +0000 (23:28 +0100)
committerFelix Lange <fjl@twurst.com>
Wed, 6 Jan 2016 23:03:31 +0000 (00:03 +0100)
commit09cb5c9625d5d9f0d7195ed399302d4f224ba086
treefef8746ad914cbd165298a9c235a57596166c004
parent89ed4d6c2f64665c0236df8f9d93217c7be38a94
ivy: fix ivy--resize-minibuffer-to-fit for small delta

Very small size increments can be necessary if the initial candidate
list is short (e.g. 3 items) and line-height is set to something other
than zero. In that case, only half of the last line is initially
visible. ivy--resize-minibuffer-to-fit recognizes this and tries to
enlarge the window up the the exact pixel height required, however
window-resize doesn't do anything if the delta is below
frame-char-height.
ivy.el