-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: rxvt-unicode-sixel
action: commit
revision:
path_from:
revision_from: f98043b4a57ee44cf6468117422758163da0af14:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

git://git.thebackupbox.net/rxvt-unicode-sixel

commit f98043b4a57ee44cf6468117422758163da0af14
Author: Marc Lehmann <schmorp@schmorp.de>
Date:   Tue Aug 14 20:32:48 2012 +0000

    *** empty log message ***

diff --git a/src/command.C b/src/command.C

index 09b284022df88dc049a3403e55f2111fc0f0710d..

index ..65a6fd919a1fdb65666e16b102563c40006c84aa 100644

--- a/src/command.C
+++ b/src/command.C
@@ -2389,6 +2389,8 @@ rxvt_term::next_char () NOTHROW
       if (len == (size_t)-1)
         {
           mbstate.reset (); // reset now undefined conversion state
+          // a -1 might indicate that a previous incomplet char is invalid (previous return -2)
+          // in which case we "errornously" return the next byte which might be valid.
           return (unsigned char)*cmdbuf_ptr++; // the _occasional_ latin1 character is allowed to slip through
         }

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 13:20:10 2024