on master help sign in
Avoid an isspace call
commitbecbf1508ce022c5c214f28ec471a646f56aa2a0 authorNeil Mitchell <ndmitchell@gmail.com> dateMon 28 Nov 2016, 21:51 (10 years ago) parentb8098d3
1 file changed+1−1
hexml.c+1−1
hexml.c+1−1
@@ -270,7 +270,7 @@ char static inline get(document* d) { char c = peek(d); skip(d, 1); return c; }
270270// Remove whitespace characters from the cursor while they are still whitespace
271271void static inline trim(document* d)
272272{
273− while (isspace(peek(d)))
273+ while (is_space(peek(d)))
274274 skip(d, 1);
275275}
276276