text_entry_minibuffer_state: better scrolling of default completion
commit919b0c0cdc5decae4b8bd81b524e2e8f9ab2c099
authorMark R. Williams <markrwilliams@gmail.com>
Thu, 19 May 2011 00:35:52 +0000 (18 20:35 -0400)
committerJohn Foerch <jjfoerch@earthlink.net>
Thu, 19 May 2011 01:10:40 +0000 (18 21:10 -0400)
tree08d0277689bcb047c9c237ee475955b5de8ea295
parent8d34cb1830e239cab68b0c3749ea42b37116526e
text_entry_minibuffer_state: better scrolling of default completion

Since XULRunner 2.0, a change in nsITreeBoxObject.scrollToRow caused
Conkeror's read-buffer completions list to scroll the completions in a
less than helpful way, often leaving blank rows at the bottom of the list.
This patch changes the update_completions_display method of
text_entry_minibuffer_state to center the default completion (when there
is one), but also ensure that no space is wasted on empty rows in the
completions display.
modules/minibuffer-read.js