new feature: support for centered cursor (disabled by default)

This commit is contained in:
Andrzej Rybczak
2009-11-11 00:50:14 +01:00
parent 35a182d79e
commit 3b7f19f095
5 changed files with 13 additions and 0 deletions

View File

@@ -235,6 +235,8 @@ template <typename WindowType> void Screen<WindowType>::Scroll(Where where, cons
}
else
w->Scroll(where);
if (List *list = Config.centered_cursor ? dynamic_cast<List *>(w) : 0)
list->Highlight(list->Choice());
}
template <typename WindowType> void Screen<WindowType>::MouseButtonPressed(MEVENT me)