Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
add .gitignore
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
de2dd0e
..
c71fa06
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-1927,7
+1927,7
@@
strhandle(void)
else if (xsetcolorname(defaultfg, p))
fprintf(stderr, "erresc: invalid foreground color: %s\n", p);
else
else if (xsetcolorname(defaultfg, p))
fprintf(stderr, "erresc: invalid foreground color: %s\n", p);
else
-
redraw
();
+
tfulldirt
();
return;
case 11:
if (narg < 2)
return;
case 11:
if (narg < 2)
@@
-1940,7
+1940,7
@@
strhandle(void)
else if (xsetcolorname(defaultbg, p))
fprintf(stderr, "erresc: invalid background color: %s\n", p);
else
else if (xsetcolorname(defaultbg, p))
fprintf(stderr, "erresc: invalid background color: %s\n", p);
else
-
redraw
();
+
tfulldirt
();
return;
case 12:
if (narg < 2)
return;
case 12:
if (narg < 2)
@@
-1953,7
+1953,7
@@
strhandle(void)
else if (xsetcolorname(defaultcs, p))
fprintf(stderr, "erresc: invalid cursor color: %s\n", p);
else
else if (xsetcolorname(defaultcs, p))
fprintf(stderr, "erresc: invalid cursor color: %s\n", p);
else
-
redraw
();
+
tfulldirt
();
return;
case 4: /* color set */
if (narg < 3)
return;
case 4: /* color set */
if (narg < 3)
@@
-1975,7
+1975,7
@@
strhandle(void)
* TODO if defaultbg color is changed, borders
* are dirty
*/
* TODO if defaultbg color is changed, borders
* are dirty
*/
-
redraw
();
+
tfulldirt
();
}
return;
}
}
return;
}
@@
-2507,6
+2507,10
@@
check_control_code:
if (width == 2) {
gp->mode |= ATTR_WIDE;
if (term.c.x+1 < term.col) {
if (width == 2) {
gp->mode |= ATTR_WIDE;
if (term.c.x+1 < term.col) {
+ if (gp[1].mode == ATTR_WIDE && term.c.x+2 < term.col) {
+ gp[2].u = ' ';
+ gp[2].mode &= ~ATTR_WDUMMY;
+ }
gp[1].u = '\0';
gp[1].mode = ATTR_WDUMMY;
}
gp[1].u = '\0';
gp[1].mode = ATTR_WDUMMY;
}