We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d787bb7 commit 61fc2e7Copy full SHA for 61fc2e7
src/term.rs
@@ -254,7 +254,9 @@ pub fn terminal_file_link<'a>(
254
.queue(SetForegroundColor(color))?
255
.queue(SetAttribute(Attribute::Underlined))?;
256
writer.stdout().write_all(b"\x1b]8;;file://")?;
257
- writer.stdout().write_all(encoded_spaces_canonical_path.as_bytes())?;
+ writer
258
+ .stdout()
259
+ .write_all(encoded_spaces_canonical_path.as_bytes())?;
260
writer.stdout().write_all(b"\x1b\\")?;
261
// Only this part is visible.
262
writer.write_str(path)?;
@@ -271,7 +273,6 @@ fn encode_spaces(path: &str) -> String {
271
273
path.replace(" ", "%20")
272
274
}
275
-
276
pub fn write_ansi(output: &mut Vec<u8>, command: impl Command) {
277
struct FmtWriter<'a>(&'a mut Vec<u8>);
278
0 commit comments