summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c737b40)
raw | patch | inline | side by side (parent: c737b40)
author | Kalle Wallin <kaw@linux.se> | |
Fri, 26 Mar 2004 23:16:49 +0000 (23:16 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Fri, 26 Mar 2004 23:16:49 +0000 (23:16 +0000) |
list_window.c | patch | blob | history |
diff --git a/list_window.c b/list_window.c
index ee08a8b8134d2582a840594905511d7955669065..ab6c7d43b0cd9b44f02e4157057a1364c30573f2 100644 (file)
--- a/list_window.c
+++ b/list_window.c
lw->selected = i;
return 0;
}
- i++;
if( wrap && i==lw->selected )
return 1;
+ i++;
+ }
+ if( wrap )
+ {
+ i=0; /* first item */
+ beep();
}
- i=0; /* first item */
}
return 1;
}
lw->selected = i;
return 0;
}
- i--;
if( wrap && i==lw->selected )
return 1;
+ i--;
+ }
+ if( wrap )
+ {
+ i=rows-1; /* last item */
+ beep();
}
- i=rows-1; /* last item */
}
return 1;
}