aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorteramako2010-10-10 07:34:28 +0000
committerteramako2010-10-10 07:34:28 +0000
commit89861756daeb3ac95dc183e7da4f63fd89f16e4e (patch)
tree5e201f786692906a49e4e9894bfa02c4cc62d823
parent73b97509e729f6c96cebe3d2d19ea1d8f6fb41ee (diff)
downloadvimperator-plugins-89861756daeb3ac95dc183e7da4f63fd89f16e4e.tar.bz2
アイテム追加時に選択アイテムが常に表示されるように修正
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38567 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r--twittperator/twlist-win.tw3
1 files changed, 3 insertions, 0 deletions
diff --git a/twittperator/twlist-win.tw b/twittperator/twlist-win.tw
index 230c8c6..674f4f3 100644
--- a/twittperator/twlist-win.tw
+++ b/twittperator/twlist-win.tw
@@ -153,6 +153,9 @@ let winXML = <>
keepMaxRows(box);
if (doSetSymbol)
setNewSymbol(box);
+
+ if (box.selectedIndex >= 0)
+ box.ensureIndexIsVisible(box.selectedIndex);
}
function xmlToDom(xml, xmlns) {
XML.prettyPrinting = false;