 CollabGroupProtocol = require '../atox-collabGroupProtocol'
-
-newlineRegex: /\r\n|\n|\r/g
+{Range, Point} = require 'atom'
 
 module.exports =
 class Collab extends CollabGroupProtocol

    return {"lines": @sLines, "lineEndings": @sLineEndings}

  CMD_process: (changes) ->
    if changes?
      @externalChange(c) for c in changes
    @process()

    @pmutex = true
    @icb = []

    @disposables.push @editor.getBuffer().onDidChange (e) => @internalChange e
    @disposables.push @editor.onDidChangeSelectionRange (e) =>
      @changedSelection e

