summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorMartin Bielik <mx.bielik@gmail.com>2023-12-02 23:07:55 +0100
committerMartin Bielik <mx.bielik@gmail.com>2023-12-02 23:08:20 +0100
commitbf1f961ccca7c8ee2da2ad6d066e83e3ec080311 (patch)
tree99a0cad8df6bf588f22be384c9bc6ff3be7be469 /py
parentaf1036be541f6743e2cd3b4c692ac5dcaa156354 (diff)
downloadvim-ai-bf1f961ccca7c8ee2da2ad6d066e83e3ec080311.tar.gz
added explaining comment
Diffstat (limited to '')
-rw-r--r--py/utils.py2
1 files changed, 1 insertions, 1 deletions
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