-- 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: 06185341b83100d8fd3732d013007bb333a2ca59: path_to: revision_to:
commit 06185341b83100d8fd3732d013007bb333a2ca59 Author: Marc Lehmann <schmorp@schmorp.de> Date: Wed Dec 21 14:23:30 2005 +0000 *** empty log message *** diff --git a/src/rxvtutil.h b/src/rxvtutil.h
--- a/src/rxvtutil.h +++ b/src/rxvtutil.h @@ -22,8 +22,7 @@ template<typename T, typename U> static inline void max_it (T &a, U b) { a = template<typename T, typename U, typename V> static inline T clamp (T v, U a, V b) { return v < (T)a ? a : v >(T)b ? b : v; } template<typename T, typename U, typename V> static inline void clamp_it (T &v, U a, V b) { v = v < (T)a ? a : v >(T)b ? b : v; } -template<typename T, typename U> -static inline void swap (T& a, U& b) { T t=a; a=(T)b; b=(U)t; } +template<typename T, typename U> static inline void swap (T& a, U& b) { T t=a; a=(T)b; b=(U)t; } // in range including end #define IN_RANGE_INC(val,beg,end) \ diff --git a/src/screen.C b/src/screen.C
--- a/src/screen.C +++ b/src/screen.C @@ -1480,7 +1480,7 @@ rxvt_term::scr_insdel_chars (int count, int insdel) if (line->is_longer ()) /* break line continuation */ line->l = ncol; - line->l = max (line->l - count, 0); + max_it (line->l - count, 0); if (selection.op && current_screen == selection.screen && ROWCOL_IN_ROW_AT_OR_AFTER (selection.beg, screen.cur)) @@ -1765,10 +1765,11 @@ rxvt_term::scr_expose (int x, int y, int ewidth, int eheight, bool refresh) #endif #ifdef DEBUG_STRICT - x = max (x, 0); - x = min (x, (int)width); - y = max (y, 0); - y = min (y, (int)height); +#if 0 + // that's not debugging //TODO //FIXME + clamp_it (x, 0, width); + clamp_it (y, 0, height); +#endif #endif /* round down */
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 10:28:06 2024