Re: [patch] viewer lockup due to recent signed->unsigned change
- From: Jindrich Makovicka <makovick kmlinux fjfi cvut cz>
- To: Jindrich Makovicka <makovick kmlinux fjfi cvut cz>
- Cc: mc-devel gnome org
- Subject: Re: [patch] viewer lockup due to recent signed->unsigned change
- Date: Thu, 19 Aug 2004 18:24:40 +0200
Oops... I shouldn't use alpha version of Mozilla... here it goes.
--- view.c.orig 2004-08-17 17:51:30.000000000 +0200
+++ view.c 2004-08-19 18:10:55.000000000 +0200
@@ -1296,7 +1296,7 @@
line = 1;
else
line = 0;
- for (q = p = current - 1; p >= view->first; p--)
+ for (q = p = current - 1;; p--) {
if (get_byte (view, p) == '\n' || p == view->first) {
pm = p > view->first ? p + 1 : view->first;
if (!view->wrap_mode) {
@@ -1315,6 +1315,9 @@
q = p + 1;
}
}
+ if (p <= view->first) break;
+ }
+
}
return p > view->first ? p : view->first;
}
--
Jindrich Makovicka
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]