Vim: In normal mode Templater multi-cursors with tp.file.cursor(1) not placed properly

Steps to reproduce

Enable vim and templater plugin.
Set up this template:

<% tp.file.cursor(1) %> 

Randomtext-<% tp.file.cursor(1) %>

Insert this template while in vim normal mode and in insert mode. When in normal mode the second tp.filecursor(1) is placed at the beginning of the second line, instead of after the ‘-’ at the end of the third line.

In insert mode the cursor is placed correctly.

Expected result

In normal mode the second tp.file.cursor(1) should place the (second multi-) cursor where the second instance of tp.file.cursor(1) says it should go.

Actual result

The second tp.file.cursor(1) should place the (second multi-) cursor at the end of the third line.

Environment

  • Operating system:

Linux OpenSuse 15.4

  • Debug info:

SYSTEM INFO:
Obsidian version: v1.1.9
Installer version: v0.15.9
Operating system: #1 SMP PREEMPT_DYNAMIC Fri Dec 9 09:29:22 UTC 2022 (e9c5676) 5.14.21-150400.24.38-default
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 1
Plugins enabled: 1
1: Templater v1.16.0


Additional information

Peek 2023-01-12 11-32

Sorry, we don’t take bug reports involving third party plugins.