2
0
Эх сурвалжийг харах

[display] consider empty calls for signature display

closes #7065
Simon Krajewski 7 жил өмнө
parent
commit
9a5bed2af9

+ 1 - 1
src/context/display/display.ml

@@ -95,7 +95,7 @@ module ExprPreprocessing = struct
 		let loop e = match fst e with
 			| ECall(_,el) | ENew(_,el) when not !found && is_display_position (pos e) ->
 				let call_arg_is_marked () =
-					List.exists (fun (e,_) -> match e with EDisplay(_,DKMarked) -> true | _ -> false) el
+					el = [] || List.exists (fun (e,_) -> match e with EDisplay(_,DKMarked) -> true | _ -> false) el
 				in
 				if not !Parser.was_auto_triggered || call_arg_is_marked () then begin
 					found := true;