~ubuntu-branches/ubuntu/lucid/mc/lucid

« back to all changes in this revision

Viewing changes to debian/patches/40_view.c.patch

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Winnertz
  • Date: 2008-09-16 10:38:59 UTC
  • mfrom: (3.1.6 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080916103859-2uwn8w61xk5mbxxq
Tags: 2:4.6.2~git20080311-4
Corrected fix for odt2txt issue (Closes: #492019) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
--- src/view.c  2005-04-27 23:34:30.000000000 +0200
2
 
+++ src/view.c  2005-04-27 23:36:20.000000000 +0200
3
 
@@ -1239,7 +1239,12 @@
4
 
            if (lines != -1 && line >= lines)
5
 
                return p;
6
 
 
7
 
-           c = get_byte (view, p);
8
 
+               if ((c = get_byte (view, p)) == -1) {
9
 
+               if (upto)
10
 
+                       return line;
11
 
+           else
12
 
+               return p;
13
 
+           }
14
 
 
15
 
            if (view->wrap_mode) {
16
 
                if (c == '\r')