~ubuntu-branches/ubuntu/lucid/newt/lucid

« back to all changes in this revision

Viewing changes to debian/patches/12_killwindow.patch

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2005-03-22 12:44:37 UTC
  • mfrom: (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050322124437-nuhl0pqjcijjno9z
Tags: 0.51.6-20ubuntu3
Add Xhosa translation (thanks, Adi Attar).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
diff -ruN newt-0.51.6-old/newt.c newt-0.51.6/newt.c
 
2
--- newt-0.51.6-old/newt.c      2003-02-05 07:11:35.000000000 +0000
 
3
+++ newt-0.51.6/newt.c  2004-02-17 15:08:01.000000000 +0000
 
4
@@ -343,7 +343,13 @@
 
5
 
 
6
     do {
 
7
        key = getkey();
 
8
-       if (key == 0xFFFF) {
 
9
+       if (key == SLANG_GETKEY_ERROR) {
 
10
+           /* Either garbage was read, or stdin disappeared
 
11
+            * (the parent terminal was proably closed)
 
12
+            * if the latter, die.
 
13
+            */
 
14
+           if (feof(stdin))
 
15
+                   exit(1);
 
16
            if (needResize) {
 
17
                 needResize = 0;
 
18
                return NEWT_KEY_RESIZE;