mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-04 00:53:41 +08:00
Readd tparm unconst-cast
Fixes the build on NetBSD. CC @ridiculousfish.
This commit is contained in:
parent
92b1f4df07
commit
c66015c2c1
|
@ -296,7 +296,8 @@ void outputter_t::set_color(rgb_color_t c, rgb_color_t c2) {
|
|||
|
||||
// Lastly, we set bold, underline, italics, dim, and reverse modes correctly.
|
||||
if (is_bold && !was_bold && enter_bold_mode && strlen(enter_bold_mode) > 0 && !bg_set) {
|
||||
writembs_nofail(*this, tparm(enter_bold_mode));
|
||||
// The unconst cast is for NetBSD's benefit. DO NOT REMOVE!
|
||||
writembs_nofail(*this, tparm((char *)enter_bold_mode));
|
||||
was_bold = is_bold;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user