Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ unreleased
- Fix completion not working for inlined records labels (#1978, fixes #1977)
- Perform buffer indexing only if the query requires it (#1990 and #1991)
- Stop unnecessarily forcing substitutions when initializing short-paths graph (#1988)
- Fix Mocaml.with_printer didn't update replacement_printer_doc (#2010)
+ test suite
- Add a test to ensure the behavior showed in issue #1517 is no longer relevant (#1995)
- Add a test to ensure the code fragment exhibited in issue #1118 no longer makes Merlin crash (#1996)
Expand Down
4 changes: 3 additions & 1 deletion src/kernel/mocaml.ml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ let default_printer ppf =
| Out_type_extension x -> Format_doc.compat default_out_type_extension ppf x
| Out_phrase x -> default_out_phrase ppf x

let with_printer printer f = let_ref replacement_printer (Some printer) f
let with_printer printer f =
let_ref replacement_printer (Some printer) @@ fun () ->
let_ref replacement_printer_doc (Some (Format_doc.deprecated printer)) f

(* Cleanup caches *)
let clear_caches () =
Expand Down
Loading