Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
Fixing meta+return. Thanks Szabolcs Nagy!
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
2654676
..
f063029
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-2694,6
+2694,9
@@
kpress(XEvent *ev) {
selpaste();
break;
case XK_Return:
selpaste();
break;
case XK_Return:
+ if(meta)
+ ttywrite("\033", 1);
+
if(IS_SET(MODE_CRLF)) {
ttywrite("\r\n", 2);
} else {
if(IS_SET(MODE_CRLF)) {
ttywrite("\r\n", 2);
} else {
@@
-2750,8
+2753,6
@@
cresize(int width, int height)
void
resize(XEvent *e) {
void
resize(XEvent *e) {
- fprintf(stderr, "resize -> %d,%d\n", e->xconfigure.width,
- e->xconfigure.height);
if(e->xconfigure.width == xw.w && e->xconfigure.height == xw.h)
return;
if(e->xconfigure.width == xw.w && e->xconfigure.height == xw.h)
return;