Xinqi Bao's Git
projects
/
st.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
189a81c
)
applied parts of "anonymous" cleanup patch.
author
Aurélien Aptel <
[email protected]
>
Wed, 8 Jun 2011 18:26:00 +0000
(20:26 +0200)
committer
Aurélien Aptel <
[email protected]
>
Wed, 8 Jun 2011 18:26:00 +0000
(20:26 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
bc17df3
..
6ba5c4c
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-483,8
+483,7
@@
selcopy(void) {
void
selnotify(XEvent *e) {
void
selnotify(XEvent *e) {
- unsigned long nitems;
- unsigned long ofs, rem;
+ unsigned long nitems, ofs, rem;
int format;
unsigned char *data;
Atom type;
int format;
unsigned char *data;
Atom type;
@@
-767,7
+766,7
@@
tnew(int col, int row) {
term.row = row, term.col = col;
term.line = malloc(term.row * sizeof(Line));
term.alt = malloc(term.row * sizeof(Line));
term.row = row, term.col = col;
term.line = malloc(term.row * sizeof(Line));
term.alt = malloc(term.row * sizeof(Line));
- for(row = 0
; row < term.row; row++) {
+ for(row = 0; row < term.row; row++) {
term.line[row] = malloc(term.col * sizeof(Glyph));
term.alt [row] = malloc(term.col * sizeof(Glyph));
}
term.line[row] = malloc(term.col * sizeof(Glyph));
term.alt [row] = malloc(term.col * sizeof(Glyph));
}