diff options
Diffstat (limited to 'lib/readline/text.c')
-rw-r--r-- | lib/readline/text.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/readline/text.c b/lib/readline/text.c index 9053e96..bb87604 100644 --- a/lib/readline/text.c +++ b/lib/readline/text.c @@ -1071,8 +1071,6 @@ int rl_delete (count, key) int count, key; { - int r; - if (count < 0) return (_rl_rubout_char (-count, key)); @@ -1090,17 +1088,17 @@ rl_delete (count, key) else rl_forward_byte (count, key); - r = rl_kill_text (orig_point, rl_point); + rl_kill_text (orig_point, rl_point); rl_point = orig_point; - return r; } else { int new_point; new_point = MB_NEXTCHAR (rl_line_buffer, rl_point, 1, MB_FIND_NONZERO); - return (rl_delete_text (rl_point, new_point)); + rl_delete_text (rl_point, new_point); } + return 0; } /* Delete the character under the cursor, unless the insertion |