Addressed PR comment regarding matching of unsaved_buffer key
@@ -443,7 +443,7 @@ pub fn get_unsaved_buffers(&self) -> Result<im::HashMap<String, String>> {
let s = String::from_utf8((&val).to_vec())
.expect("invalid utf-8 sequence retrieving unsaved buffer");
- if s.contains("unsaved_buffer") {
+ if s.starts_with("unsaved_buffer:") {
unsaved_paths.push(s.clone())
}
}
