Skip to content

Commit 4f03e70

Browse files
authored
Merge pull request #98 from zeenix/fix-chop-git-msg-content
🚑️ Don't chop off content of commit message
2 parents e053199 + 3addf6c commit 4f03e70

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use selection_view::SelectionView;
1515
use std::{
1616
error::Error,
1717
fs::File,
18-
io::{BufRead, BufReader, Write},
18+
io::{BufRead, BufReader, Read, Write},
1919
process::{self, exit},
2020
};
2121
#[cfg(unix)]
@@ -92,6 +92,8 @@ fn main() -> Result<(), Box<dyn Error>> {
9292
}
9393
}
9494

95+
// Load the rest of the file.
96+
reader.read_to_string(&mut content)?;
9597
Some(content)
9698
} else {
9799
None

0 commit comments

Comments
 (0)