summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0a49666)
raw | patch | inline | side by side (parent: 0a49666)
author | Max Kellermann <max@duempel.org> | |
Sat, 10 Oct 2009 16:46:04 +0000 (18:46 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Sat, 10 Oct 2009 16:46:04 +0000 (18:46 +0200) |
No need to check range_base in list_window_check_selected().
src/list_window.c | patch | blob | history |
diff --git a/src/list_window.c b/src/list_window.c
index c78ff6ee55074d90628524921188942a537503fa..2111edc4eb4838dcb07c3cf1da3df5566f7defae 100644 (file)
--- a/src/list_window.c
+++ b/src/list_window.c
list_window_validate_index(lw, lw->selected_end);
lw->range_base =
list_window_validate_index(lw, lw->range_base);
-
- if(lw->range_base > lw->selected_end)
- lw->selected_end = lw->selected;
- if(lw->range_base < lw->selected_start)
- lw->selected_start = lw->selected;
}
else
{