Skip to content

Commit

Permalink
fix: transfer &sidescrolloff to server
Browse files Browse the repository at this point in the history
  • Loading branch information
danth committed Aug 10, 2020
1 parent 08745c0 commit 02e1d4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pathfinder/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ def pathfind(self, buffer_contents, start_view, target_view, callback):
"buffer": buffer_contents,
"wrap": vim.current.window.options["wrap"],
"scrolloff": vim.options["scrolloff"],
"sidescrolloff": vim.options["sidescrolloff"],
}


Expand Down
1 change: 1 addition & 0 deletions pathfinder/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def do_action(self, data):

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
Expand Down

0 comments on commit 02e1d4a

Please sign in to comment.