diff --git a/harbour/source/rtl/mlcount.c b/harbour/source/rtl/mlcount.c index 905d775d6e..3f2b401a51 100644 --- a/harbour/source/rtl/mlcount.c +++ b/harbour/source/rtl/mlcount.c @@ -106,7 +106,7 @@ HB_FUNC( MLCOUNT ) { if( bWordWrap ) { - if( ulLastSpace == 0 ) + if( ulLastSpace == 0 || ulLastSpace == ulCurLength ) ulCurLength = 1; else ulCurLength = ulCurLength - ulLastSpace; @@ -123,4 +123,4 @@ HB_FUNC( MLCOUNT ) ulLines++; hb_retnl( ulLines ); -} \ No newline at end of file +}