mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
Merge branch '3390_input_backward_word'
* 3390_input_backward_word: Ticket #3390: fix backward word delete in input fields.
This commit is contained in:
commit
463833ac8d
@ -422,13 +422,14 @@ forward_word (WInput * in)
|
||||
static void
|
||||
backward_word (WInput * in)
|
||||
{
|
||||
const char *p, *p_tmp;
|
||||
const char *p;
|
||||
|
||||
for (p = in->buffer + str_offset_to_pos (in->buffer, in->point);
|
||||
(p != in->buffer) && (p[0] == '\0'); str_cprev_char (&p), in->point--);
|
||||
p = in->buffer + str_offset_to_pos (in->buffer, in->point);
|
||||
|
||||
while (p != in->buffer)
|
||||
{
|
||||
const char *p_tmp;
|
||||
|
||||
p_tmp = p;
|
||||
str_cprev_char (&p);
|
||||
if (!str_isspace (p) && !str_ispunct (p))
|
||||
|
Loading…
Reference in New Issue
Block a user