Xinqi Bao's Git
projects
/
st.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
4018b2c
)
Minor naming issue fixed.
author
Christoph Lohmann <
[email protected]
>
Sat, 13 Apr 2013 06:50:38 +0000
(08:50 +0200)
committer
Christoph Lohmann <
[email protected]
>
Sat, 13 Apr 2013 06:50:38 +0000
(08:50 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
49a9770
..
b350225
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-758,7
+758,7
@@
bpress(XEvent *e) {
void
selcopy(void) {
char *str, *ptr, *p;
void
selcopy(void) {
char *str, *ptr, *p;
- int x, y, bufsize, is
_
selected = 0, size;
+ int x, y, bufsize, isselected = 0, size;
Glyph *gp, *last;
if(sel.bx == -1) {
Glyph *gp, *last;
if(sel.bx == -1) {
@@
-769,7
+769,7
@@
selcopy(void) {
/* append every set & selected glyph to the selection */
for(y = sel.b.y; y < sel.e.y + 1; y++) {
/* append every set & selected glyph to the selection */
for(y = sel.b.y; y < sel.e.y + 1; y++) {
- is
_
selected = 0;
+ isselected = 0;
gp = &term.line[y][0];
last = gp + term.col;
gp = &term.line[y][0];
last = gp + term.col;
@@
-780,7
+780,7
@@
selcopy(void) {
if(!selected(x, y)) {
continue;
} else {
if(!selected(x, y)) {
continue;
} else {
- is
_
selected = 1;
+ isselected = 1;
}
p = (gp->state & GLYPH_SET) ? gp->c : " ";
}
p = (gp->state & GLYPH_SET) ? gp->c : " ";
@@
-798,7
+798,7
@@
selcopy(void) {
* st.
* FIXME: Fix the computer world.
*/
* st.
* FIXME: Fix the computer world.
*/
- if(is
_
selected && y < sel.e.y)
+ if(isselected && y < sel.e.y)
*ptr++ = '\n';
}
*ptr = 0;
*ptr++ = '\n';
}
*ptr = 0;