summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/state.lua
diff options
context:
space:
mode:
authorKiyan Yazdani <yazdani.kiyan@protonmail.com>2020-05-22 17:11:59 +0200
committerGitHub <noreply@github.com>2020-05-22 17:11:59 +0200
commitfb672f2630f00ff171b552a1d96b53fc0cd0f288 (patch)
tree2b7b6c514c9431b973d8d1ae4a4ff68188f3ce60 /lua/nvim-treesitter/state.lua
parentd8328b8e1c36739c61e413366c9395ceb2397ce9 (diff)
parent3b3a692e2cd26eae9cd2d591133101790153163e (diff)
Merge pull request #61 from theHamsta/cleanup-postspace
Remove postspaces and avoid one global
Diffstat (limited to 'lua/nvim-treesitter/state.lua')
-rw-r--r--lua/nvim-treesitter/state.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/nvim-treesitter/state.lua b/lua/nvim-treesitter/state.lua
index d682bd28..adff7eea 100644
--- a/lua/nvim-treesitter/state.lua
+++ b/lua/nvim-treesitter/state.lua
@@ -28,8 +28,8 @@ function M.update()
local row = cursor[1]
local col = cursor[2]
if row == buf_config.cursor_pos.row
- and col == buf_config.cursor_pos.col
- and mode == g_mode
+ and col == buf_config.cursor_pos.col
+ and mode == g_mode
then
return
end