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:
parent
a9c6d59da3
commit
a56af59f40
1 changed files with 1 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue