Lines Matching refs:m
39 menu_driver(MENU *m, int c)
46 if (!m) {
50 if (Indriver(m)) {
53 if (!Posted(m)) {
56 top = Top(m);
57 current = Current(m);
65 Pindex(m) = 0;
66 IthPattern(m, 0) = '\0';
113 if (++top > Rows(m) - Height(m)) {
122 n = min(Height(m), top);
135 n = min(Height(m), Rows(m) - Height(m) - top);
148 current = IthItem(m, 0);
152 current = IthItem(m, Nitems(m)-1);
156 if (IthPattern(m, 0) != NULL) {
157 ret = _match(m, NULL, ¤t);
159 if (Index(current)+1 >= Nitems(m)) {
160 current = IthItem(m, 0);
162 current = IthItem(m, Index(current)+1);
168 if (Index(current)+1 >= Nitems(m)) {
169 if (Cyclic(m)) {
170 current = IthItem(m, 0);
175 current = IthItem(m, Index(current)+1);
180 if (IthPattern(m, 0) != NULL) {
181 ret = _match(m, '\b', ¤t);
186 current = IthItem(m, Nitems(m)-1);
188 current = IthItem(m, Index(current)-1);
195 if (Cyclic(m)) {
196 current = IthItem(m, Nitems(m)-1);
201 current = IthItem(m, Index(current)-1);
206 if (!OneValue(m)) {
207 if (Selectable(Current(m))) {
208 Value(Current(m)) ^= TRUE;
209 _move_post_item(m, Current(m));
210 _show(m);
220 if (Pindex(m) > 0) {
221 Pindex(m) -= 1;
222 IthPattern(m, Pindex(m)) = '\0';
223 _position_cursor(m);
240 ret = _match(m, c, ¤t);
248 _chk_top(m, &top, current);
252 _affect_change(m, top, current);