Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion crates/edit/src/bin/edit/documents.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ impl DocumentManager {
let buffer = TextBuffer::new_rc(false)?;
{
let mut tb = buffer.borrow_mut();
tb.set_insert_final_newline(!cfg!(windows)); // As mandated by POSIX.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated change - dangerous?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No I just moved it into the TextBuffer constructor right next to the CRLF one. A drive-by nit-improvement.

tb.set_margin_enabled(true);
tb.set_line_highlight_enabled(true);
}
Expand Down
2 changes: 0 additions & 2 deletions crates/edit/src/bin/edit/draw_editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ fn draw_search(ctx: &mut Context, state: &mut State) {

if change {
action = change_action;
state.wants_search.focus = true;
ctx.needs_rerender();
}
}
ctx.table_end();
Expand Down
2 changes: 1 addition & 1 deletion crates/edit/src/buffer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ impl TextBuffer {
ruler: 0,
encoding: "UTF-8",
newlines_are_crlf: cfg!(windows), // Windows users want CRLF
insert_final_newline: false,
insert_final_newline: !cfg!(windows), // As mandated by POSIX.
overtype: false,

wants_cursor_visibility: false,
Expand Down
Loading