Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 498924 | Differences between
and this patch

Collapse All | Expand All

(-)a/dmenu.c (-2 / +4 lines)
Lines 337-344 keypress(XKeyEvent *ev) { Link Here
337
		sel = matchend;
337
		sel = matchend;
338
		break;
338
		break;
339
	case XK_Escape:
339
	case XK_Escape:
340
        ret = EXIT_FAILURE;
340
		ret = EXIT_FAILURE;
341
        running = False;
341
		running = False;
342
		break;
342
	case XK_Home:
343
	case XK_Home:
343
		if(sel == matches) {
344
		if(sel == matches) {
344
			cursor = 0;
345
			cursor = 0;
Lines 378-383 keypress(XKeyEvent *ev) { Link Here
378
		puts((sel && !(ev->state & ShiftMask)) ? sel->text : text);
379
		puts((sel && !(ev->state & ShiftMask)) ? sel->text : text);
379
		ret = EXIT_SUCCESS;
380
		ret = EXIT_SUCCESS;
380
		running = False;
381
		running = False;
382
		break;
381
	case XK_Right:
383
	case XK_Right:
382
		if(text[cursor] != '\0') {
384
		if(text[cursor] != '\0') {
383
			cursor = nextrune(+1);
385
			cursor = nextrune(+1);

Return to bug 498924