Ignore cursors movement sequences in history - scroll - scrollbackbuffer program for st
 (HTM) git clone git://git.suckless.org/scroll
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit f36c0dcd49862f696eb07887313f2e6db331b71d
 (DIR) parent 1dbf2dce08892df710645ddbd2ce12759ec95078
 (HTM) Author: Jochen Sprickerhof <git@jochen.sprickerhof.de>
       Date:   Thu, 30 Apr 2020 22:27:59 +0200
       
       Ignore cursors movement sequences in history
       
       Diffstat:
         M scroll.c                            |      11 ++++++++++-
       
       1 file changed, 10 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git 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;
                }