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()