mirror of
https://github.com/alacritty/alacritty.git
synced 2025-04-07 17:43:03 -04:00
Fix logfile overwriting existing files
This commit is contained in:
parent
6549303e0e
commit
e05dc3ad4a
2 changed files with 2 additions and 1 deletions
|
@ -41,6 +41,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||
- Vi cursor on topmost of the display moving downward when scrolled into history with active output
|
||||
- Input lag on Wayland with Nvidia binary driver
|
||||
- Crash when hovering the mouse over fullwidth characters
|
||||
- Do not create logfile if the file already exists
|
||||
|
||||
### Removed
|
||||
|
||||
|
|
|
@ -184,7 +184,7 @@ impl OnDemandLogFile {
|
|||
|
||||
// Create the file if it doesn't exist yet.
|
||||
if self.file.is_none() {
|
||||
let file = OpenOptions::new().append(true).create(true).open(&self.path);
|
||||
let file = OpenOptions::new().append(true).create_new(true).open(&self.path);
|
||||
|
||||
match file {
|
||||
Ok(file) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue