Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
htop
Commits
544c7efa
Commit
544c7efa
authored
Aug 20, 2015
by
Hisham Muhammad
Browse files
Omit non-printable characters with widechar curses.
Closes PR #111.
parent
c7387fac
Changes
1
Hide whitespace changes
Inline
Side-by-side
RichString.c
View file @
544c7efa
...
...
@@ -98,7 +98,7 @@ static inline void RichString_writeFrom(RichString* this, int attrs, const char*
for
(
int
i
=
from
,
j
=
0
;
i
<
newLen
;
i
++
,
j
++
)
{
CharType
*
c
=
&
(
this
->
chptr
[
i
]);
c
->
attr
=
attrs
;
c
->
chars
[
0
]
=
data
[
j
]
;
c
->
chars
[
0
]
=
(
iswprint
(
data
[
j
])
?
data
[
j
]
:
'?'
)
;
c
->
chars
[
1
]
=
0
;
}
this
->
chptr
[
newLen
].
chars
[
0
]
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment