author | Max Kellermann <max@duempel.org> | |
Sat, 10 Oct 2009 14:13:55 +0000 (16:13 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Sat, 10 Oct 2009 14:13:55 +0000 (16:13 +0200) | ||
commit | 254f6648bdcd05aa477da05627d1f99b528ec894 | |
tree | af003d8a3821f24c8533415e0e5a91b92a1987b1 | tree | snapshot |
parent | 807add769f3b1696f8fea357af04e5d07a5cb7bb | commit | diff |
list_window: don't invoke callback out-of-range
For screen rows after the end of the list, don't invoke the callback.
We know the length of the list, and we know that the callback will
return NULL anyway.
Optimization: after the end of the list, call wclrtobot() to clear all
of the remaining visible (empty) lines.
For screen rows after the end of the list, don't invoke the callback.
We know the length of the list, and we know that the callback will
return NULL anyway.
Optimization: after the end of the list, call wclrtobot() to clear all
of the remaining visible (empty) lines.