From 740f36a2c265d2042b5dc3303894cef3d86944e2 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sun, 23 Mar 2025 18:03:09 +0100 Subject: [PATCH] Macro editor won't jump back after leaving find mode --- src/lay/lay/layMacroEditorPage.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lay/lay/layMacroEditorPage.cc b/src/lay/lay/layMacroEditorPage.cc index 4f03a58d8..e90c42fff 100644 --- a/src/lay/lay/layMacroEditorPage.cc +++ b/src/lay/lay/layMacroEditorPage.cc @@ -1007,6 +1007,8 @@ void MacroEditorPage::cursor_position_changed () } } + + emit edit_trace (false); } void MacroEditorPage::text_changed () @@ -1116,9 +1118,13 @@ void MacroEditorPage::connect_macro (lym::Macro *macro) void MacroEditorPage::find_reset () { + /* + Editor gets too jumpy if we try to reset after search: + m_ignore_cursor_changed_event = true; mp_text->setTextCursor (m_edit_cursor); m_ignore_cursor_changed_event = false; + */ } bool @@ -1199,7 +1205,6 @@ MacroEditorPage::find_next () m_ignore_cursor_changed_event = true; mp_text->setTextCursor (newc); m_ignore_cursor_changed_event = false; - emit edit_trace (false); return true; } @@ -1242,7 +1247,6 @@ MacroEditorPage::select_match_here () m_ignore_cursor_changed_event = true; mp_text->setTextCursor (newc); m_ignore_cursor_changed_event = false; - emit edit_trace (false); return true; } else { return false;