File: patch.1

package info (click to toggle)
cgvg 1.6.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 280 kB
  • sloc: perl: 408; sh: 330; makefile: 8
file content (14 lines) | stat: -rw-r--r-- 669 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- /usr/bin/cg	Mon Apr 30 13:40:21 2001
+++ /tmp/cg	Wed Jun 20 17:29:40 2001
@@ -494,9 +494,9 @@
 	#   and get command character
 	chop $Input;
 	@Keys = split(/\s+/, $Input);
-	do { $Command = shift @Keys; } while ((defined $Command) and !$Command);
+	do { $Command = shift @Keys; } while ((defined $Command) and !$Command and ($Command ne "0"));
 
-	return 1 if !$Command;            # <Return> pressed, display next page
+	return 1 if !$Command and ($Command ne "0");            # <Return> pressed, display next page
 	return 1 if ($Command eq "v");
 	return undef if (($Command eq "q") | ($Command eq "Q"));
 	return -1 if (($Command eq "-") | ($Command eq "b") |