2000-02-01 06:20 UTC-0800 Brian Hays <bhays@abacuslaw.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user