2000-02-01 06:20 UTC-0800 Brian Hays <bhays@abacuslaw.com>

This commit is contained in:
Brian Hays
2001-02-02 02:12:47 +00:00
parent 92e25f4fbc
commit aa706e3dac
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2000-02-01 06:20 UTC-0800 Brian Hays <bhays@abacuslaw.com>
* source/rtl/memoline.c
* fixed nasty bug that would blow away the app if word wrap was on
and the next character after filling the line length was a space.
2001-02-01 22:10 GMT -3 Luiz Rafael Culik <culik@sl.conex.net>
+source/debug/dbgtarr.prg
*Browse functions for view arrays on debugger

View File

@@ -60,6 +60,7 @@ HB_FUNC( MEMOLINE )
ulLineBegin = ulPos;
ulLineEnd = 0;
while( ulPos < ulLen && ulLines < ulLineNumber )
{
switch( pszString[ ulPos ] )
@@ -96,7 +97,7 @@ HB_FUNC( MEMOLINE )
{
if( bWordWrap )
{
if( ulLastSpace == 0 )
if( ulLastSpace == 0 || ulLastSpace == ulCurLength )
{
ulCurLength = 1;
ulLineEnd = ulPos - 1;
@@ -147,6 +148,7 @@ HB_FUNC( MEMOLINE )
ulSpAdded += ( ( ULONG ) ( ulPos / ulTabLength ) * ulTabLength ) + ulTabLength - ulPos - 1;
else
* ( pszLine + ulPos + ulSpAdded ) = * ( pszString + ulLineBegin + ulPos );
}
}