Skip to content

Commit

Permalink
chore: Update after coderabbit review
Browse files Browse the repository at this point in the history
  • Loading branch information
clementb49 committed Feb 16, 2025
1 parent 63b6307 commit f79bc53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion basilisk/gui/history_msg_text_ctrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ def display_new_block(self, new_block: MessageBlock):

def update_last_segment_length(self):
"""Update the length of the last message segment to match the current text control position."""
if not self.segment_manager.segments:
return
last_position = self.GetLastPosition()
self.segment_manager.absolute_position = last_position
last_segment = self.segment_manager.segments[-1]
Expand Down Expand Up @@ -418,7 +420,6 @@ def _do_search(self, direction: SearchDirection = SearchDirection.FORWARD):
"""
if self._search_dialog is None:
self._search_dialog = SearchDialog(self.GetParent(), self)
self._search_dialog = SearchDialog(self.GetParent(), self)
self._search_dialog._dir_radio_forward.SetValue(
direction == SearchDirection.FORWARD
)
Expand Down

0 comments on commit f79bc53

Please sign in to comment.