Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/screen.c @ 1280:8b621f980321
readline_backward_kill_word() makes a stop at the "command" character
For example, "/qu^W" will display "/".
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 25 Aug 2007 12:25:44 +0200 |
parents | 8bbc764139ef |
children | 2c96720c4f5b |
comparison
equal
deleted
inserted
replaced
1279:8bbc764139ef | 1280:8b621f980321 |
---|---|
2631 if (!spaceallowed) break; | 2631 if (!spaceallowed) break; |
2632 } else spaceallowed = 0; | 2632 } else spaceallowed = 0; |
2633 } else spaceallowed = 0; | 2633 } else spaceallowed = 0; |
2634 } | 2634 } |
2635 | 2635 |
2636 if (c != inputLine || iswblank(get_char(c))) | 2636 if (c == inputLine && *c == COMMAND_CHAR && old != c+1) { |
2637 c = next_char(c); | |
2638 } else if (c != inputLine || iswblank(get_char(c))) { | |
2637 if ((c < prev_char(ptr_inputline, inputLine)) && (!iswalnum(get_char(c)))) | 2639 if ((c < prev_char(ptr_inputline, inputLine)) && (!iswalnum(get_char(c)))) |
2638 c = next_char(c); | 2640 c = next_char(c); |
2641 } | |
2639 | 2642 |
2640 // Modify the line | 2643 // Modify the line |
2641 ptr_inputline = c; | 2644 ptr_inputline = c; |
2642 for (;;) { | 2645 for (;;) { |
2643 *c = *old++; | 2646 *c = *old++; |