public void AddCharToCurrentLine(char c) { updateJustCurrentLine = true; bool passRemoveSelectedText = false; #if DEBUG if (dbugEnableTextManRecorder) { dbugTextManRecorder.WriteInfo("TxLMan::AddCharToCurrentLine " + c); dbugTextManRecorder.BeginContext(); } #endif if (SelectionRange != null) { #if DEBUG if (dbugEnableTextManRecorder) { dbugTextManRecorder.WriteInfo(SelectionRange); } #endif RemoveSelectedText(); passRemoveSelectedText = true; } if (passRemoveSelectedText && c == ' ') { } else { commandHistory.AddDocAction( new DocActionCharTyping(c, textLineWriter.LineNumber, textLineWriter.CharIndex)); } textLineWriter.AddCharacter(c); #if DEBUG if (dbugEnableTextManRecorder) { dbugTextManRecorder.EndContext(); } #endif }