Xinqi Bao's Git
projects
/
st.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (from parent 1:
1d59091
)
tiny code-style and typo-fix in comment
author
Hiltjo Posthuma <
[email protected]
>
Sat, 9 May 2020 11:55:34 +0000
(13:55 +0200)
committer
Hiltjo Posthuma <
[email protected]
>
Sat, 9 May 2020 12:05:04 +0000
(14:05 +0200)
st.c
patch
|
blob
|
history
x.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
2bf133f
..
c161497
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-38,7
+38,7
@@
/* macros */
#define IS_SET(flag) ((term.mode & (flag)) != 0)
/* macros */
#define IS_SET(flag) ((term.mode & (flag)) != 0)
-#define ISCONTROLC0(c) (BETWEEN(c, 0, 0x1f) || (c) ==
'\177'
)
+#define ISCONTROLC0(c) (BETWEEN(c, 0, 0x1f) || (c) ==
0x7f
)
#define ISCONTROLC1(c) (BETWEEN(c, 0x80, 0x9f))
#define ISCONTROL(c) (ISCONTROLC0(c) || ISCONTROLC1(c))
#define ISDELIM(u) (u && wcschr(worddelimiters, u))
#define ISCONTROLC1(c) (BETWEEN(c, 0x80, 0x9f))
#define ISCONTROL(c) (ISCONTROLC0(c) || ISCONTROLC1(c))
#define ISDELIM(u) (u && wcschr(worddelimiters, u))
@@
-2023,7
+2023,7
@@
tdumpline(int n)
bp = &term.line[n][0];
end = &bp[MIN(tlinelen(n), term.col) - 1];
if (bp != end || bp->u != ' ') {
bp = &term.line[n][0];
end = &bp[MIN(tlinelen(n), term.col) - 1];
if (bp != end || bp->u != ' ') {
- for ( ;bp <= end; ++bp)
+ for ( ;
bp <= end; ++bp)
tprinter(buf, utf8encode(bp->u, buf));
}
tprinter("\n", 1);
tprinter(buf, utf8encode(bp->u, buf));
}
tprinter("\n", 1);
@@
-2307,7
+2307,7
@@
tputc(Rune u)
Glyph *gp;
control = ISCONTROL(u);
Glyph *gp;
control = ISCONTROL(u);
- if (!IS_SET(MODE_UTF8
) && !IS_SET(
MODE_SIXEL)) {
+ if (!IS_SET(MODE_UTF8
|
MODE_SIXEL)) {
c[0] = u;
width = len = 1;
} else {
c[0] = u;
width = len = 1;
} else {
diff --git
a/x.c
b/x.c
index
cbbd11f
..
7bfc36f
100644
(file)
--- a/
x.c
+++ b/
x.c
@@
-1927,7
+1927,7
@@
run(void)
* triggers drawing, we first wait a bit to ensure we got
* everything, and if nothing new arrives - we draw.
* We start with trying to wait minlatency ms. If more content
* triggers drawing, we first wait a bit to ensure we got
* everything, and if nothing new arrives - we draw.
* We start with trying to wait minlatency ms. If more content
- * arrives sooner, we retry with shorter and shorter p
re
iods,
+ * arrives sooner, we retry with shorter and shorter p
er
iods,
* and eventually draw even without idle after maxlatency ms.
* Typically this results in low latency while interacting,
* maximum latency intervals during `cat huge.txt`, and perfect
* and eventually draw even without idle after maxlatency ms.
* Typically this results in low latency while interacting,
* maximum latency intervals during `cat huge.txt`, and perfect