aboutsummaryrefslogtreecommitdiffstats
path: root/incdec.m4.bash
diff options
context:
space:
mode:
Diffstat (limited to 'incdec.m4.bash')
-rw-r--r--incdec.m4.bash1
1 files changed, 1 insertions, 0 deletions
diff --git a/incdec.m4.bash b/incdec.m4.bash
index 544a71f..ff6bb57 100644
--- a/incdec.m4.bash
+++ b/incdec.m4.bash
@@ -58,6 +58,7 @@ function __readline_incdec_decrement {
local new_line_length="${#READLINE_LINE}"
+ # TODO: Point should only move when it's over the number. No, actually when it's >= the start of the number.
# If a negative sign was added, keep point where it was.
if [ "$old_line_length" -lt "$new_line_length" ]; then
READLINE_POINT="$(($READLINE_POINT + 1))"