Screen glitch/cursor movement up/down when using Templater tp.file.cursor after Obsidian 1.8.10

Not sure if this is an obsidian or Templater problem. The problem is not present in Obsidian 1.8.10 and appears after updating. I’ve been downgrading from 1.10.5 one by one until this version (1.8.10), in which the glitch is not happening. I’m aware that this may or may not be an Obsidian problem, only reporting in the case you see something on your side, as it works fine in one obsidian version and not in the next. I’m reporting also to SilentVoid13

Steps to reproduce

  • Default theme
  • Windows. Also reproduced in the most recent Android version.
  • All community plug-ins disabled (except Templater).
    With Templater active (and Obsidian version newer than 1.8.10), when you insert a template that contains tp.file.cursor in a blank note (or one with content), you can see the cursor going up and down and moving the page focus. If the note has multiple pages, the problem is more noticeable.

I’ve recorded a video with the last version (1.10.5) with the problem and another one with 1.8.10 in which this is not happening (attached videos.zip below). I’ve enabled Ninja Cursor plug-in for the problem to be more noticeable in the recording, but doing it with Templater as the only active plugin also produces the problem.

The exact Templater script is pretty simple:

**[-] <% tp.file.cursor(1) %>** `➕ <% tp.date.now("YYYY-MM-DD") %>`

Did you follow the troubleshooting guide? [Y/N]

No, as the problem only appears when using Templater, but I’ve disabled every other plugin, no snippets and using default theme.
When using 1.8.10, even with all plugins I use installed, the problem is not there. It happens after this version, regardless of if my plugins are enabled or not.

Expected result

It is expected to behave in any recent version in the same way than in 1.8.10

Actual result

Screen cursor movement

Environment

SYSTEM INFO:
Obsidian version: v1.8.10
Installer version: v1.8.10
Operating system: Windows 11 Pro 10.0.26200
Login status: logged in
Language: en
Catalyst license: vip
Insider build toggle: off
Live preview: off
Base theme: light
Community theme: none
Snippets enabled: 1
Restricted mode: off
Plugins installed: 14
Plugins enabled: 10
1: Templater v2.16.2
2: Advanced Tables v0.22.1
3: floating toc v2.7.0
4: Folder notes v1.8.17
5: Custom Attachment Location v9.17.14
6: List Callouts v1.2.9
7: Local Images Plus v0.16.4
8: Ninja Cursor v0.0.13
9: Omnisearch v1.27.3
10: Style Settings v1.0.9

(in this debug info version -1.8.10-, even with all my plug-ins enabled, the problem is not there)


Additional information

videos.zip (496.1 KB)