Summary: [PATCH] Remove unnecessary decrement of rep_cnt
                 Project: GNU Screen
            Submitted by: guoci
            Submitted on: Thu 13 Oct 2016 03:19:20 PM GMT
                Category: User Interface
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: Cur Dev Sources
           Fixed Release: None
         Planned Release: None
           Work Required: None



Currently, 0% and 1% points to the same location in the scrollback buffer due
to this bug.

$ git diff HEAD~
diff --git a/src/mark.c b/src/mark.c
index 04d1ecc..34b2e17 100644
--- a/src/mark.c
+++ b/src/mark.c
@@ -681,7 +681,6 @@ static void MarkProcess(char **inbufp, size_t *inlenp)
                        /* it may be useful to have a key that does nothing
                case '%':
-                       rep_cnt--;
                        /* rep_cnt is a percentage for the history buffer */
                        if (rep_cnt < 0)
                                rep_cnt = 0;


Reply to this item at:


  Message sent via/by Savannah

Reply via email to