Skip to content

Stop moving focus into the search box#821

Merged
lhecker merged 1 commit intomainfrom
dev/lhecker/find-focus
Apr 27, 2026
Merged

Stop moving focus into the search box#821
lhecker merged 1 commit intomainfrom
dev/lhecker/find-focus

Conversation

@lhecker
Copy link
Copy Markdown
Member

@lhecker lhecker commented Apr 27, 2026

This just annoyed me and I remember people complaining about it.

@lhecker lhecker requested a review from DHowett April 27, 2026 18:29
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.

@lhecker lhecker merged commit e5f0c45 into main Apr 27, 2026
8 checks passed
@lhecker lhecker deleted the dev/lhecker/find-focus branch April 27, 2026 18:44
@lhecker lhecker mentioned this pull request Apr 28, 2026
lhecker added a commit that referenced this pull request Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants