diff options
author | axel <axel@liljencrantz.se> | 2006-02-07 01:15:52 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-02-07 01:15:52 +1000 |
commit | e756f7d619a7458768d59cd9bd1c97c6a1c7788a (patch) | |
tree | 5bd9af9ee0af8006a639ca23def0f9df5efef559 /kill.c | |
parent | cf3d30d4e4eb75806bfc92cf540eec6d207817ff (diff) |
Minor code cleanup, don't use expand_escape and expand_unescape any more
darcs-hash:20060206151552-ac50b-e2229d096926461f643fdcdfc79ef1ff01344a35.gz
Diffstat (limited to 'kill.c')
-rw-r--r-- | kill.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -25,7 +25,6 @@ #include "sanity.h" #include "common.h" #include "env.h" -#include "expand.h" #include "exec.h" #include "parser.h" @@ -95,7 +94,7 @@ void kill_add( wchar_t *str ) wchar_t *disp; if( (disp = env_get( L"DISPLAY" )) ) { - wchar_t *escaped_str = expand_escape( str, 1 ); + wchar_t *escaped_str = escape( str, 1 ); wchar_t *cmd = wcsdupcat2(L"echo ", escaped_str, L"|xsel -b",0); exec_subshell( cmd, 0 ); free( cut_buffer ); @@ -137,7 +136,7 @@ static void kill_check_x_buffer() for( i=0; i<al_get_count( &list ); i++ ) { - wchar_t *next_line = expand_escape( (wchar_t *)al_get( &list, i ), 0); + wchar_t *next_line = escape( (wchar_t *)al_get( &list, i ), 0); if( i==0 ) { new_cut_buffer = next_line; |