aboutsummaryrefslogtreecommitdiffstats
path: root/src/LYStrings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYStrings.c')
-rw-r--r--src/LYStrings.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/LYStrings.c b/src/LYStrings.c
index 71e50e28..4b37c0dd 100644
--- a/src/LYStrings.c
+++ b/src/LYStrings.c
@@ -297,7 +297,11 @@ PUBLIC char *LYstrncpy ARGS3(
int, n)
{
char *val;
- int len = strlen(src);
+ int len;
+
+ if (src == 0)
+ src = "";
+ len = strlen(src);
if (n < 0)
n = 0;
@@ -1836,6 +1840,17 @@ PUBLIC int LYEdit1 ARGS4(
}
break;
+ case LYE_DELBL:
+ /*
+ * Delete from current cursor position back to BOL.
+ */
+ {
+ int pos0 = Pos;
+ while (pos0--)
+ LYEdit1(edit, 0, LYE_DELP, FALSE);
+ }
+ break;
+
case LYE_DELEL:
/*
* Delete from current cursor position thru EOL.