~vcs-imports/ipfire/ipfire-2.x

« back to all changes in this revision

Viewing changes to src/patches/screen-4.2.1-cpation-hardstatus.patch

  • Committer: Dirk Wagner
  • Date: 2014-12-23 08:02:23 UTC
  • mfrom: (4405.56.108)
  • Revision ID: git-v1:601f8347ccb1e9c5e3f250ff26d4097ecd698875
Merge branch 'next' of ssh://git.ipfire.org/pub/git/ipfire-2.x into asterisk-update

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
diff --git a/src/screen.c b/src/screen.c
 
2
index 473e4fa..8b36bea 100644
 
3
--- a/screen.c
 
4
+++ b/screen.c
 
5
@@ -2271,8 +2271,8 @@ int padlen;
 
6
          while (i-- > 0)
 
7
            *pn-- = ' ';
 
8
          numpad--;
 
9
-         if (r && p - buf == winmsg_rendpos[r - 1])
 
10
-           winmsg_rendpos[--r] = pn - buf;
 
11
+         if (r && p - buf + 1== winmsg_rendpos[r - 1])
 
12
+           winmsg_rendpos[--r] = pn - buf + 1;
 
13
        }
 
14
     }
 
15
   return pn2;
 
16