pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/editors/lpe/patches



Module Name:    pkgsrc
Committed By:   ktnb
Date:           Tue Jan 14 14:40:47 UTC 2025

Added Files:
        pkgsrc/editors/lpe/patches: patch-src_cfg.c patch-src_input.c

Log Message:
lpe: fixed slang error setting


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/editors/lpe/patches/patch-src_cfg.c \
    pkgsrc/editors/lpe/patches/patch-src_input.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/editors/lpe/patches/patch-src_cfg.c
diff -u /dev/null pkgsrc/editors/lpe/patches/patch-src_cfg.c:1.1
--- /dev/null   Tue Jan 14 14:40:47 2025
+++ pkgsrc/editors/lpe/patches/patch-src_cfg.c  Tue Jan 14 14:40:47 2025
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_cfg.c,v 1.1 2025/01/14 14:40:47 ktnb Exp $
+
+Update error setting to slang 2
+
+--- src/cfg.c.orig     2001-06-20 09:44:42.000000000 +0000
++++ src/cfg.c
+@@ -37,7 +37,7 @@ cfg_init (void)
+       if (SLang_load_file (DATADIR "/lpe/init.sl") == -1)
+       {
+           SLang_restart (1);
+-          SLang_Error = 0;
++          SLang_set_error (0);
+       }
+     }
+ }
Index: pkgsrc/editors/lpe/patches/patch-src_input.c
diff -u /dev/null pkgsrc/editors/lpe/patches/patch-src_input.c:1.1
--- /dev/null   Tue Jan 14 14:40:47 2025
+++ pkgsrc/editors/lpe/patches/patch-src_input.c        Tue Jan 14 14:40:47 2025
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_input.c,v 1.1 2025/01/14 14:40:47 ktnb Exp $
+
+Update error setting to slang 2
+
+--- src/input.c.orig   2001-06-20 09:43:39.000000000 +0000
++++ src/input.c
+@@ -2262,7 +2262,7 @@ key_slang (buffer * buf)
+     SLang_load_string (cmd);
+     /* to avoid slang stack overflows... */
+     SLang_restart (1);
+-    SLang_Error = 0;
++    SLang_set_error (0);
+ 
+     /* 
+      * This is not the nicest thing to do, but certain slang commnds,



Home | Main Index | Thread Index | Old Index