瀏覽代碼

[display] consider empty calls for signature display

closes #7065
Simon Krajewski 7 年之前
父節點
當前提交
9a5bed2af9
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;