Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Make notification handler be more immutable #794

Merged
merged 1 commit into from
Oct 13, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion browser/src/neovim/NeovimInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,9 @@ export class NeovimInstance extends EventEmitter implements INeovimInstance {

private _handleNotification(_method: any, args: any): void {
args.forEach((a: any[]) => {
const command = a.shift()
const command = a[0]
a = a.slice(1)

switch (command) {
case "cursor_goto":
this.emit("action", Actions.createCursorGotoAction(a[0][0], a[0][1]))
Expand Down