Skip to content

Commit 0f271cd

Browse files
committed
Zed_char: improve first_core
1 parent 00cd570 commit 0f271cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/zed_char.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ let first_core ?(trim=false) uChars=
101101
match uChars with
102102
| []-> None, []
103103
| uChar::_->
104-
if not trim && is_combining_mark uChar then
105-
None, uChars
106-
else
104+
if trim || is_printable_core uChar then
107105
aux uChars
106+
else
107+
None, uChars
108108

109109
let rec subsequent uChars=
110110
match uChars with

0 commit comments

Comments
 (0)