aboutsummaryrefslogtreecommitdiffstats
path: root/incdec.m4.bash
diff options
context:
space:
mode:
authorTeddy Wing2021-08-28 18:47:52 +0200
committerTeddy Wing2021-08-28 19:41:05 +0200
commit487e7220fe660e20b57f83edf0caf4b3ebdb2045 (patch)
tree363f3b7e01a40b666b97b38d0ce090155b8f9298 /incdec.m4.bash
parent88cc7f664a2c582c4fb08a4c3f927da7863ce9fc (diff)
downloadreadline-incdec-487e7220fe660e20b57f83edf0caf4b3ebdb2045.tar.bz2
incdec.bash: Add TODO about moving point
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))"