Re: MC internal viewer bug



Hello!

> > > Then start resizing the window in horizontal direction. You'll see
> > > that at certain horizontal sizes the text will not be wrapped.
> > > Hope you can reproduce it.
> 
> Hope this is the right place to report it.
> See the bug description above.

Fixed.  It took 5 months just to get to the problem and 10 minutes to fix
the code and test it.  It's a one byte fix :-)

=============================
--- ChangeLog
+++ ChangeLog
@@ -1 +1,6 @@
+2002-09-24  Pavel Roskin  <proski gnu org>
+
+	* view.c (display): Fix wrapping of tabs.
+	Reported by Arpad Biro <biro_arpad yahoo com>
+
 2002-09-23  Pavel Roskin  <proski gnu org>
--- view.c
+++ view.c
@@ -969,7 +969,7 @@ display (WView * view)
 	    get_byte (view, from);
 	for (; row < height && from < view->last_byte; from++) {
 	    c = get_byte (view, from);
-	    if ((c == '\n') || (col == width && view->wrap_mode)) {
+	    if ((c == '\n') || (col >= width && view->wrap_mode)) {
 		col = frame_shift;
 		row++;
 		if (c == '\n' || row >= height)
=============================

-- 
Regards,
Pavel Roskin




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]