From 3b3a692e2cd26eae9cd2d591133101790153163e Mon Sep 17 00:00:00 2001 From: Stephan Seitz Date: Fri, 22 May 2020 17:04:46 +0200 Subject: Remove postspaces and avoid one global --- lua/nvim-treesitter/state.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/nvim-treesitter/state.lua') 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 -- cgit v1.2.3