mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-22 03:02:06 +03:00
* edit/wordproc.c (next_word_start): A word is preceded by a whitespace -
the latest changes missed that fact. Restore the original behaviour.
This commit is contained in:
parent
13884c4908
commit
6625412758
@ -1,3 +1,8 @@
|
||||
2006-06-16 Leonard den Ottolander <leonard den ottolander nl>
|
||||
|
||||
* wordproc.c (next_word_start): A word is preceded by a whitespace -
|
||||
the latest changes missed that fact. Restore the original behaviour.
|
||||
|
||||
2006-06-16 Jindrich Novy <jnovy@redhat.com>
|
||||
|
||||
* wordproc.c (word_start): Add new argument. Pass extra argument
|
||||
|
@ -201,15 +201,20 @@ static int
|
||||
next_word_start (unsigned char *t, int q, int size)
|
||||
{
|
||||
int i;
|
||||
int saw_ws = 0;
|
||||
|
||||
for (i = q; i < size; i++) {
|
||||
switch (t[i]) {
|
||||
case '\n':
|
||||
return -1;
|
||||
case '\t':
|
||||
case ' ':
|
||||
continue;
|
||||
saw_ws = 1;
|
||||
break;
|
||||
default:
|
||||
return i;
|
||||
if (saw_ws != 0)
|
||||
return i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user