patches

Patches for various other programs
git clone https://git.regexghost.com/patches.git
Log | Files | Refs | README

commit 84808c6329a58122ceb127d1d3a453c551118543
parent c2a99ff284a742e6c8411ac2186148604f81035e
Author: regexghost <dev@regexghost.com>
Date:   Thu, 18 Jun 2026 17:17:44 +0100

less sync patch and oksh removing certain commands from history

Diffstat:
Aless-bsu-esu.diff | 23+++++++++++++++++++++++
Aoksh-history.diff | 15+++++++++++++++
2 files changed, 38 insertions(+), 0 deletions(-)

diff --git a/less-bsu-esu.diff b/less-bsu-esu.diff @@ -0,0 +1,23 @@ +diff --git a/command.c b/command.c +index 0fc2b7a..2d3b8bd 100644 +--- a/command.c ++++ b/command.c +@@ -1572,6 +1572,10 @@ public void commands(void) + if (is_ignoring_input(action)) + continue; + ++ ++ printf("\033P=1s\033\\"); ++ fflush(stdout); ++ + switch (action) + { + case A_START_PASTE: +@@ -2434,5 +2438,7 @@ public void commands(void) + lbell(); + break; + } ++ printf("\033P=2s\033\\"); ++ fflush(stdout); + } + } diff --git a/oksh-history.diff b/oksh-history.diff @@ -0,0 +1,15 @@ +diff --git a/history.c b/history.c +index ce599a2..8380bda 100644 +--- a/history.c ++++ b/history.c +@@ -660,6 +660,10 @@ histsave(int lno, const char *cmd, int dowrite) + { + char *c, *cp; + ++ if (!strcmp(cmd, "ls\n") || !strcmp(cmd, "l\n")) { ++ return; ++ } ++ + if (ignorespace && cmd[0] == ' ') + return; +