summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-05-09 21:36:50 -0700
committerLouie S <louie@example.com>2023-05-09 21:36:50 -0700
commit5683ccf3a01d8d97b08f8ecbf656a3d92f9737ef (patch)
tree4f49a78f2f1d12ad7ac6276934637dd272678b75 /src
parent3a1962deeb9975f7e175d0e06b88725b7d79ecc8 (diff)
Fixed graphical issues pertaining to remembering e_hovers
Diffstat (limited to 'src')
-rw-r--r--src/draw.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/draw.c b/src/draw.c
index fa5965a..9bb982f 100644
--- a/src/draw.c
+++ b/src/draw.c
@@ -469,8 +469,6 @@ void trav_col(int new_i){
oob_flag = 2;
}
- // rewrite to not rely on oob_flag semantics
- //if(oob_flag > 0) (true_hover ? update_col(1, oob_flag-1, false) : update_col(0, oob_flag-1, false));
if(oob_flag > 0){
if(true_hover){
update_col(1, (oob_flag == 1 ? entry_win->_maxy-1 : 1), false);
@@ -484,8 +482,7 @@ void trav_col(int new_i){
mvwchgat(entry_win, 1+e_hover[g_hover]-e_offset[g_hover], 1, entry_win->_maxx-1, A_DIM, (true_hover ? 2 : 1), NULL);
mvwchgat(group_win, 1+g_hover-g_offset, 1, group_win->_maxx-1, A_DIM, (true_hover ? 1 : 2), NULL);
if(!true_hover){ //a little extra work regarding group hover
- e_offset[g_hover] = 0;
- update_col(1, e_hover[g_hover]+1, false);
+ update_col(1, e_hover[g_hover]+1, true);
}
wrefresh(group_win);