[PATCH] add / to wordchars

From: Jochen Sprickerhof <jochen_AT_sprickerhof.de>
Date: Sat, 16 Feb 2013 17:24:52 +0100

i.e. break words at /.
---
 dmenu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dmenu.c b/dmenu.c
index 8d9bbb6..cb3b057 100644
--- a/dmenu.c
+++ b/dmenu.c
_AT_@ -270,9 +270,9 @@ keypress(XKeyEvent *ev) {
 			insert(NULL, 0 - cursor);
 			break;
 		case XK_w: /* delete word */
-			while(cursor > 0 && text[nextrune(-1)] == ' ')
+			while(cursor > 0 && (text[nextrune(-1)] == ' ' || text[nextrune(-1)] == '/'))
 				insert(NULL, nextrune(-1) - cursor);
-			while(cursor > 0 && text[nextrune(-1)] != ' ')
+			while(cursor > 0 && text[nextrune(-1)] != ' ' && text[nextrune(-1)] != '/')
 				insert(NULL, nextrune(-1) - cursor);
 			break;
 		case XK_y: /* paste selection */
-- 
1.8.4.4
--u3/rZRmxL6MmkK24--
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Sun Nov 24 2013 - 13:48:03 CET