* 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:
Pavel Tsekov 2006-06-16 20:01:29 +00:00
parent 13884c4908
commit 6625412758
2 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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;