From 0d9a3ff4cd1660968819a89093ff5595b93bae4d Mon Sep 17 00:00:00 2001
From: Nicolas Werner <nicolas.werner@hotmail.de>
Date: Wed, 30 Mar 2022 07:02:52 +0200
Subject: [PATCH] Fix cursor moving to the end when editing in the middle

---
 src/timeline/InputBar.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp
index 58a86d260..f7c4fc1e8 100644
--- a/src/timeline/InputBar.cpp
+++ b/src/timeline/InputBar.cpp
@@ -249,7 +249,8 @@ InputBar::updateState(int selectionStart_,
         history_index_ = 0;
 
         updateAtRoom(text_);
-        emit textChanged(text_);
+        // disabled, as it moves the cursor to the end
+        // emit textChanged(text_);
     }
 
     selectionStart = selectionStart_;
-- 
GitLab