Maintain scroll bottom when streaming assistant responses
This commit is contained in:
parent
43500dbf60
commit
d26cc2c897
6 changed files with 176 additions and 75 deletions
|
@ -400,7 +400,7 @@ fn scroll(editor: &mut Editor, amount: &ScrollAmount, cx: &mut ViewContext<Edito
|
|||
};
|
||||
|
||||
let scroll_margin_rows = editor.vertical_scroll_margin() as u32;
|
||||
let top_anchor = editor.scroll_manager.anchor().top_anchor;
|
||||
let top_anchor = editor.scroll_manager.anchor().anchor;
|
||||
|
||||
editor.change_selections(None, cx, |s| {
|
||||
s.replace_cursors_with(|snapshot| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue