summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/state.lua
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2020-05-22 17:04:46 +0200
committerStephan Seitz <stephan.seitz@fau.de>2020-05-22 17:07:28 +0200
commit3b3a692e2cd26eae9cd2d591133101790153163e (patch)
tree2b7b6c514c9431b973d8d1ae4a4ff68188f3ce60 /lua/nvim-treesitter/state.lua
parentd8328b8e1c36739c61e413366c9395ceb2397ce9 (diff)
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