Rename keep_newlines to stop_at_newlines
This commit is contained in:
parent
3df43f4d01
commit
71e06b4fb1
3 changed files with 3 additions and 3 deletions
|
@ -251,7 +251,7 @@ pub struct DeleteToPreviousWordStart {
|
||||||
#[serde(deny_unknown_fields)]
|
#[serde(deny_unknown_fields)]
|
||||||
pub struct CutToEndOfLine {
|
pub struct CutToEndOfLine {
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub keep_newlines: bool,
|
pub stop_at_newlines: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Folds all code blocks at the specified indentation level.
|
/// Folds all code blocks at the specified indentation level.
|
||||||
|
|
|
@ -13113,7 +13113,7 @@ impl Editor {
|
||||||
window,
|
window,
|
||||||
cx,
|
cx,
|
||||||
);
|
);
|
||||||
if !action.keep_newlines {
|
if !action.stop_at_newlines {
|
||||||
this.change_selections(Default::default(), window, cx, |s| {
|
this.change_selections(Default::default(), window, cx, |s| {
|
||||||
s.move_with(|_, sel| {
|
s.move_with(|_, sel| {
|
||||||
if sel.is_empty() {
|
if sel.is_empty() {
|
||||||
|
|
|
@ -5790,7 +5790,7 @@ async fn test_cut_line_ends(cx: &mut TestAppContext) {
|
||||||
cx.update_editor(|e, window, cx| {
|
cx.update_editor(|e, window, cx| {
|
||||||
e.cut_to_end_of_line(
|
e.cut_to_end_of_line(
|
||||||
&CutToEndOfLine {
|
&CutToEndOfLine {
|
||||||
keep_newlines: true,
|
stop_at_newlines: true,
|
||||||
},
|
},
|
||||||
window,
|
window,
|
||||||
cx,
|
cx,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue