version 1.82, 2011/12/01 20:42:31 |
version 1.83, 2012/01/20 19:10:29 |
|
|
struct paste_buffer *pb; |
struct paste_buffer *pb; |
char *s, *first, *last, word[64], swapc; |
char *s, *first, *last, word[64], swapc; |
const char *histstr; |
const char *histstr; |
const char *wsep; |
const char *wsep = NULL; |
u_char ch; |
u_char ch; |
size_t size, n, off, idx; |
size_t size, n, off, idx; |
|
|
|
|
c->prompt_index = idx; |
c->prompt_index = idx; |
c->flags |= CLIENT_STATUS; |
c->flags |= CLIENT_STATUS; |
break; |
break; |
|
case MODEKEYEDIT_NEXTSPACE: |
|
wsep = " "; |
|
/* FALLTHROUGH */ |
case MODEKEYEDIT_NEXTWORD: |
case MODEKEYEDIT_NEXTWORD: |
wsep = options_get_string(oo, "word-separators"); |
if (wsep == NULL) |
|
wsep = options_get_string(oo, "word-separators"); |
|
|
/* Find a separator. */ |
/* Find a separator. */ |
while (c->prompt_index != size) { |
while (c->prompt_index != size) { |
|
|
|
|
c->flags |= CLIENT_STATUS; |
c->flags |= CLIENT_STATUS; |
break; |
break; |
|
case MODEKEYEDIT_NEXTSPACEEND: |
|
wsep = " "; |
|
/* FALLTHROUGH */ |
case MODEKEYEDIT_NEXTWORDEND: |
case MODEKEYEDIT_NEXTWORDEND: |
wsep = options_get_string(oo, "word-separators"); |
if (wsep == NULL) |
|
wsep = options_get_string(oo, "word-separators"); |
|
|
/* Find a word. */ |
/* Find a word. */ |
while (c->prompt_index != size) { |
while (c->prompt_index != size) { |
|
|
|
|
c->flags |= CLIENT_STATUS; |
c->flags |= CLIENT_STATUS; |
break; |
break; |
|
case MODEKEYEDIT_PREVIOUSSPACE: |
|
wsep = " "; |
|
/* FALLTHROUGH */ |
case MODEKEYEDIT_PREVIOUSWORD: |
case MODEKEYEDIT_PREVIOUSWORD: |
wsep = options_get_string(oo, "word-separators"); |
if (wsep == NULL) |
|
wsep = options_get_string(oo, "word-separators"); |
|
|
/* Find a non-separator. */ |
/* Find a non-separator. */ |
while (c->prompt_index != 0) { |
while (c->prompt_index != 0) { |