File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 11# Hike ChangeLog
22
3+ ## Unreleased
4+
5+ ** Released: WiP**
6+
7+ - Fixed a problem with the ToC getting out of sync in some circumstances.
8+ ([ #132 ] ( https://github.com/davep/hike/issues/132 ) )
9+
310## v1.1.3
411
512** Released: 2025-08-19**
Original file line number Diff line number Diff line change @@ -354,22 +354,23 @@ def _watch_location(self) -> None:
354354 self ._visit (self .location )
355355
356356 @on (Loaded )
357- def _update_markdown (self , message : Loaded ) -> None :
357+ async def _update_markdown (self , message : Loaded ) -> None :
358358 """Update the markdown once some new content is loaded.
359359
360360 Args:
361361 message: The message requesting the update.
362362 """
363363 self .query_one (ViewerTitle ).location = self .location
364364 self ._source = message .markdown
365- self .query_one (Markdown ).update (message .markdown )
365+ await self .query_one (Markdown ).update (message .markdown )
366366 if (
367367 message .remember
368368 and self .location
369369 and self .location != self .history .current_item
370370 ):
371371 self .history .add (self .location )
372- self .post_message (self .HistoryUpdated (self ))
372+ if self .parent is not None :
373+ self .parent .post_message (self .HistoryUpdated (self ))
373374
374375 def _visit_from_history (self ) -> None :
375376 """Visit the current location in history."""
You can’t perform that action at this time.
0 commit comments