limit direction keys in vline ebd94a6c
Connor Lane Smith · 2011-11-15 20:32 1 file(s) · +4 −0
dmenu.c +4 −0
328 328
			cursor = nextrune(-1);
329 329
			break;
330 330
		}
331 +
		if(lines > 0)
332 +
			return;
331 333
		/* fallthrough */
332 334
	case XK_Up:
333 335
		if(sel && sel->left && (sel = sel->left)->right == curr) {
356 358
			cursor = nextrune(+1);
357 359
			break;
358 360
		}
361 +
		if(lines > 0)
362 +
			return;
359 363
		/* fallthrough */
360 364
	case XK_Down:
361 365
		if(sel && sel->right && (sel = sel->right) == next) {