Quotestring with space fixed
This commit is contained in:
parent
016299ce9b
commit
50c9b357a3
@ -12,6 +12,9 @@ ______________________________________________________________________
|
|||||||
Notes for GoldED+ 1.1.5, /snapshot/
|
Notes for GoldED+ 1.1.5, /snapshot/
|
||||||
______________________________________________________________________
|
______________________________________________________________________
|
||||||
|
|
||||||
|
- Fixed quotewrap in internal editor if quotestring contains a space
|
||||||
|
inside.
|
||||||
|
|
||||||
! GoldED+ will no longer add new entry to addressbook if it is an
|
! GoldED+ will no longer add new entry to addressbook if it is an
|
||||||
addressmacro.
|
addressmacro.
|
||||||
|
|
||||||
|
@ -682,7 +682,7 @@ Line* IEclass::wrapit(Line** __currline, uint* __curr_col, uint* __curr_row, boo
|
|||||||
int _atmargin = _wrappos;
|
int _atmargin = _wrappos;
|
||||||
|
|
||||||
// Search backwards until a space or the beginning of the line is found
|
// 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--;
|
_wrappos--;
|
||||||
|
|
||||||
// Check if we hit leading spaces
|
// 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?
|
// 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
|
// Case 3: There are no spaces within the margin or we hit leading spaces
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user