applyFix

fun applyFix(span: RichSpan, fix: String)(source)

Replaces the text under span, a diagnostic's underline, with fix, unless a refresh has since replaced it. The underline goes once fix has landed as given, and stays when the input filter refuses it, as com.darkrockstudios.texteditor.spellcheck.SpellCheckState.correctSpelling keeps a flag.