Skip to content

Commit

Permalink
Fix issue #3 - Openning multiple files.
Browse files Browse the repository at this point in the history
  • Loading branch information
spamwax committed Sep 6, 2023
1 parent 9fefecd commit 173c644
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/remote_editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ pub(crate) fn open_file_in_remote(
}
// Signal we are done sending this file
let _n = buf_writer
.write_fmt(format_args!("\n.\n"))
.map_err(|e| e.to_string());
.write_fmt(format_args!("\n"))
.map_err(|e| e.to_string())?;
buf_writer.flush().map_err(|e| e.to_string())?;
debug!(" os-reported file size: {}", opened_buffer.size);
debug!(" actual bytes read: {}", total);
Expand All @@ -134,6 +134,8 @@ pub(crate) fn open_file_in_remote(
opened_buffer.canon_path
);
}
let _n = buf_writer.write_fmt(format_args!(".\n")).map_err(|e| e.to_string())?;
buf_writer.flush().map_err(|e| e.to_string())?;
}

let mut b = [0u8; 512];
Expand Down

0 comments on commit 173c644

Please sign in to comment.