diff options
| author | Guillaume Melquiond | 2016-08-16 11:00:11 +0200 |
|---|---|---|
| committer | Guillaume Melquiond | 2016-08-16 11:00:11 +0200 |
| commit | 3941c270d79c3e3a4be12ba260a2694e523e4229 (patch) | |
| tree | 3f2dc794a10f0025f2d19ff993485b297da6cc3b | |
| parent | c90c53129436014b0020c52641277d616144282a (diff) | |
| parent | 6d1e0f80d215678559ada3d5b32c22c0d015454e (diff) | |
Merge branch 'pr255' into v8.5 (bug #5015)
| -rw-r--r-- | ide/coqOps.ml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ide/coqOps.ml b/ide/coqOps.ml index 80ce99a69e..e12fda9141 100644 --- a/ide/coqOps.ml +++ b/ide/coqOps.ml @@ -338,8 +338,11 @@ object(self) method private show_goals_aux ?(move_insert=false) () = Coq.PrintOpt.set_printing_width proof#width; if move_insert then begin - buffer#place_cursor ~where:self#get_start_of_input; - script#recenter_insert; + let dest = self#get_start_of_input in + if (buffer#get_iter_at_mark `INSERT)#compare dest <= 0 then begin + buffer#place_cursor ~where:dest; + script#recenter_insert + end end; Coq.bind (Coq.goals ~logger:messages#push ()) (function | Fail x -> self#handle_failure_aux ~move_insert x |
