repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: a3070e9f7fdd169afbfe0684dceab2d9b90ed2d7: path_to: revision_to:
commit a3070e9f7fdd169afbfe0684dceab2d9b90ed2d7 Author: Marc LehmannDate: Mon Oct 9 23:12:45 2006 +0000 misc fixes inspired by an idiot diff --git a/src/keyboard.C b/src/keyboard.C
--- a/src/keyboard.C
+++ b/src/keyboard.C
@@ -238,7 +238,7 @@ keyboard_manager::register_user_translation (KeySym keysym, unsigned int state,
key->type = keysym_t::LIST;
key->range = suffix - middle - 1;
- strcpy (translation, translation + 4);
+ memmove (translation, translation + 4, strlen (translation + 4) + 1);
}
else
rxvt_warn ("cannot parse list-type keysym '%s', treating as normal keysym.\n", translation);
diff --git a/src/screen.C b/src/screen.C
--- a/src/screen.C
+++ b/src/screen.C
@@ -411,7 +411,7 @@ rxvt_term::scr_reset ()
tabs = (char *)rxvt_malloc (ncol * sizeof (char));
- for (int col = ncol; col--; )
+ for (int col = ncol; --col; )
tabs [col] = col % TABSIZE == 0;
if (current_screen != PRIMARY)
@@ -2351,9 +2351,7 @@ rxvt_term::scr_refresh () NOTHROW
*/
rxvt_font *font = (*fontset[GET_STYLE (rend)])[GET_FONT (rend)];
- if (back == fore)
- font->clear_rect (*drawable, xpixel, ypixel, fwidth * count, fheight, back);
- else if (back == Color_bg && have_bg)
+ if (back == Color_bg && have_bg)
{
// this is very ugly, maybe push it into ->draw?
-----END OF PAGE-----