summaryrefslogtreecommitdiff
path: root/Userland/Applications/Run/RunWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applications/Run/RunWindow.cpp')
-rw-r--r--Userland/Applications/Run/RunWindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Applications/Run/RunWindow.cpp b/Userland/Applications/Run/RunWindow.cpp
index 0e864971c3..252c2a6a1a 100644
--- a/Userland/Applications/Run/RunWindow.cpp
+++ b/Userland/Applications/Run/RunWindow.cpp
@@ -187,7 +187,8 @@ ErrorOr<void> RunWindow::save_history()
// Write the first 25 items of history
for (int i = 0; i < min(static_cast<int>(m_path_history.size()), 25); i++)
- TRY(file->write(DeprecatedString::formatted("{}\n", m_path_history[i]).bytes()));
+ // FIXME: This should write the entire span.
+ TRY(file->write_some(DeprecatedString::formatted("{}\n", m_path_history[i]).bytes()));
return {};
}