From bf1f961ccca7c8ee2da2ad6d066e83e3ec080311 Mon Sep 17 00:00:00 2001 From: Martin Bielik Date: Sat, 2 Dec 2023 23:07:55 +0100 Subject: added explaining comment --- autoload/vim_ai.vim | 2 +- py/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/vim_ai.vim b/autoload/vim_ai.vim index ff447ac..dfd9c3b 100644 --- a/autoload/vim_ai.vim +++ b/autoload/vim_ai.vim @@ -99,7 +99,7 @@ function! s:SelectCurrentLineOrSelection(is_selection) if a:is_selection execute "normal! gv" else - execute 'normal! V' + execute 'normal! V' endif endfunction diff --git a/py/utils.py b/py/utils.py index b5ede7f..d04b18d 100644 --- a/py/utils.py +++ b/py/utils.py @@ -82,7 +82,7 @@ def need_insert_before_cursor(is_selection): pos = vim.eval("getpos(\"'<\")[1:2]") if not isinstance(pos, list) or len(pos) != 2: raise ValueError("Unexpected getpos value, it should be a list with two elements") - return pos[1] == "1" + return pos[1] == "1" # determines if visual selection starts on the first window column def render_text_chunks(chunks, is_selection): generating_text = False -- cgit v1.2.3