Skip to content

Commit

Permalink
Refactor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
notomo committed Jun 24, 2023
1 parent 25bd078 commit 84264ff
Show file tree
Hide file tree
Showing 2 changed files with 176 additions and 129 deletions.
4 changes: 1 addition & 3 deletions lua/gesture/core/state.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ function State.get_or_create(open_view)
_inputs = {},
_window_id = window_id,

_first_position = { point.y, point.x },
_window_ids = { first_window_id },

view = view,
Expand Down Expand Up @@ -81,9 +80,8 @@ end

function State.action_context(self)
local point = self.view.current_point()
local last_position = { point.y, point.x }
return {
last_position = last_position,
last_position = { point.y, point.x },

inputs = vim.tbl_map(function(input)
return input
Expand Down
Loading

0 comments on commit 84264ff

Please sign in to comment.