mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 09:19:24 +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
|
static void
|
||||||
backward_word (WInput * in)
|
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 + str_offset_to_pos (in->buffer, in->point);
|
||||||
(p != in->buffer) && (p[0] == '\0'); str_cprev_char (&p), in->point--);
|
|
||||||
|
|
||||||
while (p != in->buffer)
|
while (p != in->buffer)
|
||||||
{
|
{
|
||||||
|
const char *p_tmp;
|
||||||
|
|
||||||
p_tmp = p;
|
p_tmp = p;
|
||||||
str_cprev_char (&p);
|
str_cprev_char (&p);
|
||||||
if (!str_isspace (p) && !str_ispunct (p))
|
if (!str_isspace (p) && !str_ispunct (p))
|
||||||
|
Loading…
Reference in New Issue
Block a user