We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 387c1c1 commit 69ea45bCopy full SHA for 69ea45b
src/lTerm_history.ml
@@ -390,15 +390,17 @@ let load history ?log ?(skip_empty=true) ?(skip_dup=true) fn =
390
| None ->
391
return ()
392
| Some line ->
393
- let line= Zed_string.unsafe_of_utf8 line in
394
- (try
+ (try
+ let line= Zed_string.of_utf8 line in
395
let entry, size = unescape line in
396
if not (skip_empty && is_empty entry) && not (skip_dup && is_dup history entry) then begin
397
add_aux history entry size;
398
history.old_count <- history.length
399
end
400
- with Zed_utf8.Invalid (msg, _) ->
401
- log num msg);
+ with
+ | Zed_string.Invalid (msg, _)-> log num msg
402
+ | Zed_utf8.Invalid (msg, _)-> log num msg
403
+ );
404
aux (num + 1)
405
in
406
aux 1)
0 commit comments