File: fix_cmd_ed_k

package info (click to toggle)
sash 3.8-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 768 kB
  • sloc: ansic: 8,177; makefile: 47; sh: 10
file content (14 lines) | stat: -rw-r--r-- 438 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Fix the line marking command in the builtin ed
Origin: https://build.opensuse.org/projects/openSUSE:Leap:42.3:Update/packages/sash/files/sash-ed-line-marking.diff

--- a/cmd_ed.c
+++ b/cmd_ed.c
@@ -248,7 +248,7 @@ doCommands(void)
 				while (isBlank(*cp))
 					cp++;
 
-				if ((*cp < 'a') || (*cp > 'a') || cp[1])
+				if ((*cp < 'a') || (*cp > 'z') || cp[1])
 				{
 					fprintf(stderr, "Bad mark name\n");
 					break;