Jelajahi Sumber

[display] consider empty calls for signature display

closes #7065
Simon Krajewski 7 tahun lalu
induk
melakukan
9a5bed2af9
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/context/display/display.ml

+ 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;