Skip to content

Commit

Permalink
fix: charwise evaluateOperator was off by one (quarto-dev#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
benlubas authored Nov 14, 2023
1 parent 8951478 commit 91ec70b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rplugin/python3/molten/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ def function_molten_operatorfunc(self, args) -> None:
elif kind == "char":
pass
colno_begin = min(colno_begin, len(self.nvim.funcs.getline(lineno_begin)))
colno_end = min(colno_end, len(self.nvim.funcs.getline(lineno_end)))
colno_end = min(colno_end, len(self.nvim.funcs.getline(lineno_end))) + 1
else:
raise MoltenException(f"this kind of selection is not supported: '{kind}'")

Expand Down

0 comments on commit 91ec70b

Please sign in to comment.