bugGNU Screen - Bugs: bug #49336, [PATCH] Remove unnecessary...

 
 

bug #49336: [PATCH] Remove unnecessary decrement of rep_cnt

Submitted by:  Guo Ci <guoci>
Submitted on:  Thu 13 Oct 2016 03:19:20 PM UTC  
 
Category: User InterfaceSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedRelease: Cur Dev Sources
Fixed Release: 4.5.0Planned Release: None
Work Required: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 16 Oct 2016 02:39:56 PM UTC, comment #1:

Thanks, pushed to screen-v4 and master branches.

Amadeusz Sławiński <amade>
Project Administrator
Thu 13 Oct 2016 03:19:20 PM UTC, original submission:

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 */
break;
case '%':
- rep_cnt--;
/* rep_cnt is a percentage for the history buffer */
if (rep_cnt < 0)
rep_cnt = 0;

Guo Ci <guoci>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #38719:  fix_rep_cnt.patch added by guoci (528B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by amade (Posted a comment)
  • -unavailable- added by guoci (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 18 Jan 2017 09:42:09 PM UTCamadeOpen/ClosedOpen=>Closed
    Wed 18 Jan 2017 09:41:54 PM UTCamadeFixed ReleaseNone=>4.5.0
    Sun 16 Oct 2016 02:39:56 PM UTCamadeStatusNone=>Fixed
    Thu 13 Oct 2016 03:29:29 PM UTCguociAttached File-=>Added fix_rep_cnt.patch, #38719

    Back to the top


    Powered by Savane 3.1-cleanup1