[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[screen-devel] [bug #49336] [PATCH] Remove unnecessary decrement of rep_

From: Guo Ci
Subject: [screen-devel] [bug #49336] [PATCH] Remove unnecessary decrement of rep_cnt
Date: Thu, 13 Oct 2016 15:19:22 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0


                 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

[Prev in Thread] Current Thread [Next in Thread]