               KD.singletons.router.handleRoute '/IDE'
 
 
+  removeParticipantCursorWidget: (targetUser) ->
+
+    @forEachSubViewInIDEViews_ 'editor', (editorPane) =>
+      userLineWidget = editorPane.lineWidgets?[targetUser]
+
+      if userLineWidget
+        widgetManager = editorPane.getAce().lineWidgetManager
+        widgetManager.removeLineWidget userLineWidget
+
+
   makeReadOnly: ->
 
     return  if @isReadOnly

      else
        @chat.emit 'ParticipantLeft', targetUser
        @statusBar.emit 'ParticipantLeft', targetUser

        # check the user is still at same index, so we won't remove someone else.
        user = @participants.get targetIndex


        @socialChannel.emit 'RemovedFromChannel', account

        targetUser = account.profile.nickname
        message    =
          type     : 'ParticipantKicked'
          origin   : KD.nick()
          target   : targetUser

        @broadcastMessages.push message
        @removeParticipantCursorWidget targetUser


  listenPings: ->
