[R-SIG-Mac] Phantom Text

Hans-Jörg Bibiko bibiko at eva.mpg.de
Mon Jan 21 01:04:19 CET 2013

On Jan 21, 2013, at 12:27 AM, Joseph Coyle wrote:

> Regarding the phantom text problem I have had a poke around the subversion tree and found that the bug was introduced in the subversion commit from 28 August 2012 10:02:49 GMT+01:00.   Specifically the method:  - (void)textStorageDidProcessEditing:(NSNotification *)notification from RScriptEditorTextView was altered to comment out the if statement shown below which serves to interrupt the syntax highlighting on large text blocks to improve performance. 
> 		if([[theTextStorage string] length] > 120000) {
> 			breakSyntaxHighlighting = 1;
> 		}
> The line below was then added presumably as a temporary test. 
> breakSyntaxHighlighting = 1;

Hi Joseph,

thanks for the effort!

Indeed, I found out that the syntax highlighting parser was responsible for this "phantom" text caused by an uncaught output of the underlying lex parser. Today I've already sent Simon my patch thus in the next release this "phantom" will disappear.


More information about the R-SIG-Mac mailing list