MCPcopy Create free account
hub / github.com/GCWing/BitFun / scroll_to_bottom

Method scroll_to_bottom

src/apps/cli/src/ui/chat/scroll.rs:91–95  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

89 }
90
91 pub fn scroll_to_bottom(&mut self) {
92 self.browse_mode = false;
93 self.auto_scroll = true;
94 self.scroll_offset = 0;
95 }
96
97 /// Count total rendered lines for all messages (used for scroll calculations).
98 /// Uses cached value when possible to avoid O(N) full re-render on every scroll.

Callers 3

handle_key_eventMethod · 0.80
switch_to_sessionMethod · 0.80
create_new_sessionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected