Quotestring with space fixed

This commit is contained in:
Alexander S. Aganichev
2001-11-03 15:04:16 +00:00
parent 016299ce9b
commit 50c9b357a3
2 changed files with 5 additions and 2 deletions

View File

@@ -682,7 +682,7 @@ Line* IEclass::wrapit(Line** __currline, uint* __curr_col, uint* __curr_row, boo
int _atmargin = _wrappos;
// Search backwards until a space or the beginning of the line is found
while((_wrappos > 0) and (_thisline->txt[_wrappos-1] != ' '))
while((_wrappos > _quotelen) and (_thisline->txt[_wrappos-1] != ' '))
_wrappos--;
// Check if we hit leading spaces
@@ -694,7 +694,7 @@ Line* IEclass::wrapit(Line** __currline, uint* __curr_col, uint* __curr_row, boo
}
// Did we search all the way back to the beginning of the line?
if((_wrappos == 0) or (_wrappos == _quotelen) or (_thisline->txt[_spacepos] == ' ')) {
if((_wrappos == _quotelen) or (_thisline->txt[_spacepos] == ' ')) {
// Case 3: There are no spaces within the margin or we hit leading spaces