Merge commit 'origin/256_backward_word_fix'

* commit 'origin/256_backward_word_fix':
  Ticket #256 (segfault in backward_word)
This commit is contained in:
Ilia Maslakov 2009-11-18 12:41:16 +03:00
commit 7e30a30e24

View File

@ -1490,7 +1490,7 @@ backward_word (WInput *in)
for ( 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'); (p != in->buffer) && (p[0] == '\0');
p-- , in->point-- str_cprev_char (&p), in->point--
); );
while (p != in->buffer) { while (p != in->buffer) {