summaryrefslogtreecommitdiff
path: root/patches/bold-is-not-bright.patch
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-07-01 14:02:43 +0200
committerCharles Cabergs <me@cacharle.xyz>2021-07-01 14:02:43 +0200
commit82cd78a9447c82f596ca012a726789e869c74942 (patch)
treece0eb3ab20d476b955cc6d7f5a4e23819128d323 /patches/bold-is-not-bright.patch
parent9ee3e2b4faedcd9213d58901a157af86acef5bae (diff)
parenta6b6ec1cfd10d64f0692cff17d6d7a4d780106f8 (diff)
downloadst-82cd78a9447c82f596ca012a726789e869c74942.tar.gz
st-82cd78a9447c82f596ca012a726789e869c74942.tar.bz2
st-82cd78a9447c82f596ca012a726789e869c74942.zip
Merge branch 'master' of cacharle.xyz:/srv/git/st
Diffstat (limited to 'patches/bold-is-not-bright.patch')
-rw-r--r--patches/bold-is-not-bright.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/patches/bold-is-not-bright.patch b/patches/bold-is-not-bright.patch
new file mode 100644
index 0000000..dd3e5bf
--- /dev/null
+++ b/patches/bold-is-not-bright.patch
@@ -0,0 +1,27 @@
+From e8f3c86d93613eef5af187dfd2dba9ae9919a2ee Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Rapha=C3=ABl=20Proust?= <code@bnwr.net>
+Date: Sun, 27 Jan 2019 13:31:28 +0800
+Subject: [PATCH] Show bold not as bright
+
+---
+ x.c | 4 ----
+ 1 file changed, 4 deletions(-)
+
+diff --git a/x.c b/x.c
+index 0422421..904e1dc 100644
+--- a/x.c
++++ b/x.c
+@@ -1296,10 +1296,6 @@ xdrawglyphfontspecs(const XftGlyphFontSpec *specs, Glyph base, int len, int x, i
+ bg = &dc.col[base.bg];
+ }
+
+- /* Change basic system colors [0-7] to bright system colors [8-15] */
+- if ((base.mode & ATTR_BOLD_FAINT) == ATTR_BOLD && BETWEEN(base.fg, 0, 7))
+- fg = &dc.col[base.fg + 8];
+-
+ if (IS_SET(MODE_REVERSE)) {
+ if (fg == &dc.col[defaultfg]) {
+ fg = &dc.col[defaultbg];
+--
+2.20.1
+