diff options
author | Connor Lane Smith <cls@lubutu.com> | 2011-07-17 14:06:53 +0100 |
---|---|---|
committer | Connor Lane Smith <cls@lubutu.com> | 2011-07-17 14:06:53 +0100 |
commit | 1636e122101501ddb907119c61d0961ccaa89a99 (patch) | |
tree | 95bacf1b11ea8c0ea3b24d431540499bcfe59fe9 | |
parent | 2b92c95230fbbdcf47f701d9cc4fd133a7972fae (diff) |
tweaks
-rw-r--r-- | dmenu.c | 1 | ||||
-rw-r--r-- | lsx.c | 3 |
2 files changed, 2 insertions, 2 deletions
@@ -279,6 +279,7 @@ keypress(XKeyEvent *ev) { | |||
279 | if(text[cursor] == '\0') | 279 | if(text[cursor] == '\0') |
280 | return; | 280 | return; |
281 | cursor = nextrune(+1); | 281 | cursor = nextrune(+1); |
282 | /* fallthrough */ | ||
282 | case XK_BackSpace: | 283 | case XK_BackSpace: |
283 | if(cursor == 0) | 284 | if(cursor == 0) |
284 | return; | 285 | return; |
@@ -3,7 +3,6 @@ | |||
3 | #include <limits.h> | 3 | #include <limits.h> |
4 | #include <stdio.h> | 4 | #include <stdio.h> |
5 | #include <stdlib.h> | 5 | #include <stdlib.h> |
6 | #include <string.h> | ||
7 | #include <unistd.h> | 6 | #include <unistd.h> |
8 | #include <sys/stat.h> | 7 | #include <sys/stat.h> |
9 | 8 | ||
@@ -32,7 +31,7 @@ lsx(const char *dir) { | |||
32 | return; | 31 | return; |
33 | } | 32 | } |
34 | while((d = readdir(dp))) | 33 | while((d = readdir(dp))) |
35 | if(snprintf(buf, sizeof buf, "%s/%s", dir, d->d_name) < (ssize_t)sizeof buf | 34 | if(snprintf(buf, sizeof buf, "%s/%s", dir, d->d_name) < (int)sizeof buf |
36 | && !stat(buf, &st) && S_ISREG(st.st_mode) && access(buf, X_OK) == 0) | 35 | && !stat(buf, &st) && S_ISREG(st.st_mode) && access(buf, X_OK) == 0) |
37 | puts(d->d_name); | 36 | puts(d->d_name); |
38 | closedir(dp); | 37 | closedir(dp); |