From c4c2a5d7702e846b3321d6f7b451aac1c86c23b5 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Sun, 15 Jun 2025 12:43:27 +0200 Subject: [PATCH] Add Double arrow up fix --- Misc/Double arrow up fix/README.md | 1 + .../Double arrow up fix/Scripts/Double arrow up fix.pluto | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 Misc/Double arrow up fix/README.md create mode 100644 Misc/Double arrow up fix/Scripts/Double arrow up fix.pluto diff --git a/Misc/Double arrow up fix/README.md b/Misc/Double arrow up fix/README.md new file mode 100644 index 0000000..e56d488 --- /dev/null +++ b/Misc/Double arrow up fix/README.md @@ -0,0 +1 @@ +You may have noticed that when you use arrow up to repeat your previous sent message/command, you can't use arrow up to repeat it again. This script fixes this by always resetting your "sent history index" after you submit a message/command. \ No newline at end of file diff --git a/Misc/Double arrow up fix/Scripts/Double arrow up fix.pluto b/Misc/Double arrow up fix/Scripts/Double arrow up fix.pluto new file mode 100644 index 0000000..cee2ad9 --- /dev/null +++ b/Misc/Double arrow up fix/Scripts/Double arrow up fix.pluto @@ -0,0 +1,8 @@ +chat_subscribe_prefix("") +repeat + while evt := owf_next_event() do + if evt.type == OWF_EVT_SUBMIT_CHAT_MESSAGE then + chat_set_sent_history_index(#chat_get_sent_history() + 1) + end + end +until yield()