about summary refs log tree commit diff stats
path: root/src/LYStrings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYStrings.c')
-rw-r--r--src/LYStrings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LYStrings.c b/src/LYStrings.c
index 6d9a68c7..f11b2e7f 100644
--- a/src/LYStrings.c
+++ b/src/LYStrings.c
@@ -842,7 +842,7 @@ PUBLIC int LYEdit1 ARGS4(
         /*
 	 *  Delete current character.
 	 */
-	if (length == 0)
+	if (length == 0 || Pos == length)
 	    break;
 	for (i = Pos; i < length; i++)
 	    Buf[i] = Buf[i+1];