From 9045d41219334a037648731a5a9a162f5845f92b Mon Sep 17 00:00:00 2001 From: gareuselesinge Date: Thu, 10 Oct 2013 14:15:34 +0000 Subject: CoqIDE: error reporting fixed Many things were wrong. Error tags were deleted by mistake, the screen was recentered on `INSERT using the wrong function (that cause some horizontal scrolling even if it was not needed), the cursor not advanced to the end of the wrong sentence. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16874 85f007b7-540e-0410-9357-904b9bb8a0f7 --- ide/sentence.ml | 1 + 1 file changed, 1 insertion(+) (limited to 'ide/sentence.ml') diff --git a/ide/sentence.ml b/ide/sentence.ml index 7706c8d34..9c361c81f 100644 --- a/ide/sentence.ml +++ b/ide/sentence.ml @@ -16,6 +16,7 @@ let split_slice_lax (buffer:GText.buffer) start stop = buffer#remove_tag ~start ~stop Tags.Script.sentence; buffer#remove_tag ~start ~stop Tags.Script.error; + buffer#remove_tag ~start ~stop Tags.Script.error_bg; let slice = buffer#get_text ~start ~stop () in let apply_tag off tag = (* off is now a utf8-compliant char offset, cf Coq_lex.utf8_adjust *) -- cgit v1.2.3