Avoid randomly "eating" blanks.

At the time do_word() is called s.word[s.wordlen] is undefined. So it doesn't make sense to make decisions based on its value - and in fact I don't see why it was necessary/desirable in the first place.
This commit is contained in:
Oliver Schmidt 2015-05-24 15:45:45 +02:00
parent a9c6d59da3
commit a56af59f40

View file

@ -305,9 +305,7 @@ do_word(void)
{
if(s.wordlen > 0) {
if(s.majorstate == MAJORSTATE_LINK) {
if(s.word[s.wordlen] != ISO_space) {
add_char(ISO_space);
}
add_char(ISO_space);
} else if(s.majorstate == MAJORSTATE_DISCARD) {
s.wordlen = 0;
} else {