Rename keep_newlines to stop_at_newlines

This commit is contained in:
Peter Tripp 2025-07-23 15:07:51 -04:00
parent 3df43f4d01
commit 71e06b4fb1
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View file

@ -251,7 +251,7 @@ pub struct DeleteToPreviousWordStart {
#[serde(deny_unknown_fields)]
pub struct CutToEndOfLine {
#[serde(default)]
pub keep_newlines: bool,
pub stop_at_newlines: bool,
}
/// Folds all code blocks at the specified indentation level.

View file

@ -13113,7 +13113,7 @@ impl Editor {
window,
cx,
);
if !action.keep_newlines {
if !action.stop_at_newlines {
this.change_selections(Default::default(), window, cx, |s| {
s.move_with(|_, sel| {
if sel.is_empty() {

View file

@ -5790,7 +5790,7 @@ async fn test_cut_line_ends(cx: &mut TestAppContext) {
cx.update_editor(|e, window, cx| {
e.cut_to_end_of_line(
&CutToEndOfLine {
keep_newlines: true,
stop_at_newlines: true,
},
window,
cx,