From ab41c192884275d3c7d683964cd573482482dde1 Mon Sep 17 00:00:00 2001 From: tris203 Date: Sat, 1 Jun 2024 16:57:46 +0100 Subject: [PATCH] chore: style --- lua/precognition/horizontal_motions.lua | 3 ++- tests/precognition/char_spec.lua | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/precognition/horizontal_motions.lua b/lua/precognition/horizontal_motions.lua index 5a8f21d..d45701d 100644 --- a/lua/precognition/horizontal_motions.lua +++ b/lua/precognition/horizontal_motions.lua @@ -69,7 +69,8 @@ function M.end_of_word(str, cursorcol, linelen, big_word) local rev_offset if - (c_class == cc.puncuation and next_char_class ~= cc.puncuation) or (next_char_class == cc.puncuation and c_class ~= cc.puncuation) + (c_class == cc.puncuation and next_char_class ~= cc.puncuation) + or (next_char_class == cc.puncuation and c_class ~= cc.puncuation) then offset = offset + 1 char = vim.fn.strcharpart(str, offset - 1, 1) diff --git a/tests/precognition/char_spec.lua b/tests/precognition/char_spec.lua index 13ef314..f56b8ab 100644 --- a/tests/precognition/char_spec.lua +++ b/tests/precognition/char_spec.lua @@ -65,7 +65,6 @@ describe("big_word classing", function() eq(utils.char_class("@", true), 1) eq(utils.char_class(".", true), 1) end) - end) describe("pad arrays", function()