projects
/
dana
/
urxvt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
00695ff
)
*** empty log message ***
author
root
<root>
Mon, 13 Dec 2004 19:16:36 +0000
(19:16 +0000)
committer
root
<root>
Mon, 13 Dec 2004 19:16:36 +0000
(19:16 +0000)
src/main.C
patch
|
blob
|
history
src/rxvt.h
patch
|
blob
|
history
src/screen.C
patch
|
blob
|
history
diff --git
a/src/main.C
b/src/main.C
index
942089f
..
a570ffe
100644
(file)
--- a/
src/main.C
+++ b/
src/main.C
@@
-261,6
+261,7
@@
rxvt_term::~rxvt_term ()
free (env_term);
free (env_colorfgbg);
free (locale);
free (env_term);
free (env_colorfgbg);
free (locale);
+ free (v_buffer);
free (incr_buf);
delete envv;
free (incr_buf);
delete envv;
diff --git
a/src/rxvt.h
b/src/rxvt.h
index
8d857f9
..
525ee3f
100644
(file)
--- a/
src/rxvt.h
+++ b/
src/rxvt.h
@@
-1202,7
+1202,8
@@
struct rxvt_term : zero_initialized, rxvt_vars {
# endif
#endif
# endif
#endif
- void paste (const unsigned char *data, unsigned int len);
+ // modifies first argument(!)
+ void paste (unsigned char *data, unsigned int len);
void flush ();
void flush ();
diff --git
a/src/screen.C
b/src/screen.C
index
5836898
..
116c264
100644
(file)
--- a/
src/screen.C
+++ b/
src/screen.C
@@
-2658,25
+2658,14
@@
rxvt_term::selection_check (int check_more)
* Paste a selection direct to the command fd
*/
void
* Paste a selection direct to the command fd
*/
void
-rxvt_term::paste (
const
unsigned char *data, unsigned int len)
+rxvt_term::paste (unsigned char *data, unsigned int len)
{
{
- unsigned int i, j, n;
- unsigned char *ds = (unsigned char *)rxvt_malloc (PASTE_SIZE);
-
/* convert normal newline chars into common keyboard Return key sequence */
/* convert normal newline chars into common keyboard Return key sequence */
- for (i = 0; i < len; i += PASTE_SIZE)
- {
- n = min (len - i, PASTE_SIZE);
- memcpy (ds, data + i, n);
-
- for (j = 0; j < n; j++)
- if (ds[j] == C0_LF)
- ds[j] = C0_CR;
-
- tt_write (ds, (int)n);
- }
+ for (unsigned int i = 0; i < len; i++)
+ if (data[i] == C0_LF)
+ data[i] = C0_CR;
-
free (ds
);
+
tt_write (data, len
);
}
/* ------------------------------------------------------------------------- */
}
/* ------------------------------------------------------------------------- */