We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f465ff commit e42fba0Copy full SHA for e42fba0
helix-term/src/commands/typed.rs
@@ -1324,6 +1324,7 @@ fn reflow(
1324
return Ok(());
1325
}
1326
1327
+ let scrolloff = cx.editor.config().scrolloff;
1328
let (view, doc) = current!(cx.editor);
1329
1330
const DEFAULT_MAX_LEN: usize = 79;
@@ -1354,6 +1355,7 @@ fn reflow(
1354
1355
1356
doc.apply(&transaction, view.id);
1357
doc.append_changes_to_history(view.id);
1358
+ view.ensure_cursor_in_view(doc, scrolloff);
1359
1360
Ok(())
1361
0 commit comments