about summary refs log tree commit diff
path: root/src/actions/shift.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/shift.rs')
-rw-r--r--src/actions/shift.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actions/shift.rs b/src/actions/shift.rs
index 437fcb4..6880c20 100644
--- a/src/actions/shift.rs
+++ b/src/actions/shift.rs
@@ -32,7 +32,7 @@ pub fn shift(command_options: ActionOptions, path: &str, new_cursor: usize) -> R
                 working_file.rewind()?;
                 working_file.set_len(0)?;
 
-                working_file.write_all(new_content.as_bytes())?;
+                working_file.write_all(&new_content)?;
             }
 
             file_history.write_to_file(&mut history_file)?;
@@ -47,7 +47,7 @@ pub fn shift(command_options: ActionOptions, path: &str, new_cursor: usize) -> R
                 let mut new_working_file = deleted.create_working_file(&locations)?;
                 let new_content = file_history.get_content();
 
-                new_working_file.write_all(new_content.as_bytes())?;
+                new_working_file.write_all(&new_content)?;
             }
         }
         FileState::Untracked(_) => panic!("File is not tracked with Ka."),