commit f36c0dcd49862f696eb07887313f2e6db331b71d
Author:     Jochen Sprickerhof <[email protected]>
AuthorDate: Thu Apr 30 22:27:59 2020 +0200
Commit:     Jochen Sprickerhof <[email protected]>
CommitDate: Thu Apr 30 22:28:48 2020 +0200

    Ignore cursors movement sequences in history

diff --git a/scroll.c b/scroll.c
index 28cd653..466d0bc 100644
--- a/scroll.c
+++ b/scroll.c
@@ -211,8 +211,17 @@ skipesc(char c)
 
                        /* don't save cursor move or clear screen */
                        /* esc sequences to log */
-                       if (c == 'H' || c == 'J')
+                       switch (c) {
+                               case 'A':
+                               case 'B':
+                               case 'C':
+                               case 'D':
+                               case 'H':
+                               case 'J':
+                               case 'K':
+                               case 'f':
                                return true;
+                       }
                }
                break;
        }

Reply via email to