Remove rxvt additional parsing of resource values.
authorayin <ayin>
Sat, 8 Sep 2007 20:54:50 +0000 (20:54 +0000)
committerayin <ayin>
Sat, 8 Sep 2007 20:54:50 +0000 (20:54 +0000)
src/init.C
src/xdefaults.C

index 99cd05b2fbc4359d2f2dc0ddfa59ac8b6cd14080..316282e4fda13a2cfea2c7ddb9920a0c91c2bd8f 100644 (file)
@@ -404,8 +404,6 @@ rxvt_term::init_resources (int argc, const char *const *argv)
   else
     {
       val = strdup (rs[Rs_backspace_key]);
-      rxvt_Str_trim (val);
-      rxvt_Str_escaped (val);
       key_backspace = val;
     }
 #endif
@@ -420,16 +418,9 @@ rxvt_term::init_resources (int argc, const char *const *argv)
   else
     {
       val = strdup (rs[Rs_delete_key]);
-      rxvt_Str_trim (val);
-      rxvt_Str_escaped (val);
       key_delete = val;
     }
 #endif
-  if (rs[Rs_answerbackstring])
-    {
-      rxvt_Str_trim ((char *)rs[Rs_answerbackstring]);
-      rxvt_Str_escaped ((char *)rs[Rs_answerbackstring]);
-    }
 
 #ifdef HAVE_SCROLLBARS
   setup_scrollbar (rs[Rs_scrollBar_align], rs[Rs_scrollstyle], rs[Rs_scrollBar_thickness]);
index 03746a95300dcb7a9bf346c9226e430d6328e171..664dbc30b157065a931020c41b37149e6f76ed2d 100644 (file)
@@ -758,8 +758,7 @@ rxvt_term::parse_keysym (const char *str, const char *arg)
       newarg = newargstr;
     }
 
-  rxvt_Str_trim (newarg);
-  if (*newarg == '\0' || (n = rxvt_Str_escaped (newarg)) == 0)
+  if (*newarg == '\0')
     return -1;
 
   keyboard->register_user_translation (sym, state, newarg);