(self, data)
Process an instruction from the client.
Process an instruction from the client.
Process an instruction from the client .
def do_action(self, data):
        """Process an instruction from the client."""
        self.start_view = data["start"]
        self.target_view = data["target"]
        self.min_line = data["min_line"]
        self.max_line = data["max_line"]

        vim.current.buffer[:] = data["buffer"]

        vim.current.window.options["wrap"] = data["wrap"]
        vim.options["scrolloff"] = data["scrolloff"]
        vim.options["sidescrolloff"] = data["sidescrolloff"]

        # Set size of the entire Vim display to match the size of the
        # corresponding window in the client
        vim.options["columns"] = int(data["size"][0])
        vim.options["lines"] = vim.options["cmdheight"] + int(data["size"][1])

        self.pathfind()
def do_action ( self , data ) : self . start_view = data [ "start" ] self . target_view = data [ "target" ] self . min_line = data [ "min_line" ] self . max_line = data [ "max_line" ] vim . current . buffer [ : ] = data [ "buffer" ] vim . current . window . options [ "wrap" ] = data [ "wrap" ] vim . options [ "scrolloff" ] = data [ "scrolloff" ] vim . options [ "sidescrolloff" ] = data [ "sidescrolloff" ] # Set size of the entire Vim display to match the size of the # corresponding window in the client vim . options [ "columns" ] = int ( data [ "size" ] [ 0 ] ) vim . options [ "lines" ] = vim . options [ "cmdheight" ] + int ( data [ "size" ] [ 1 ] ) self . pathfind ( )