Skip to content

Commit 4fa3738

Browse files
committed
Address copilot review
1 parent 9ffedc3 commit 4fa3738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/but/src/tui/get_text.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ pub fn from_editor_no_comments(filename_safe_intent: &str, initial_text: &str) -
2626
/// Note that this string must be valid in filenames.
2727
///
2828
/// Returns the edited text (*without known encoding*) verbatim.
29-
pub fn from_editor(identifier: &str, initial_text: &str) -> Result<BString> {
29+
pub fn from_editor(filename_safe_intent: &str, initial_text: &str) -> Result<BString> {
3030
let editor_cmd = get_editor_command()?;
3131

3232
// Create a temporary file with the initial text
3333
let tempfile = tempfile::Builder::new()
34-
.prefix(&format!("but_{identifier}_"))
34+
.prefix(&format!("but_{filename_safe_intent}_"))
3535
.suffix(".txt")
3636
.tempfile()?;
3737
std::fs::write(&tempfile, initial_text)?;

0 commit comments

Comments
 (0)