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, 1 insertions, 2 deletions
diff --git a/Userland/Applications/Run/RunWindow.cpp b/Userland/Applications/Run/RunWindow.cpp
index 252c2a6a1a..f97f90dae2 100644
--- a/Userland/Applications/Run/RunWindow.cpp
+++ b/Userland/Applications/Run/RunWindow.cpp
@@ -187,8 +187,7 @@ 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++)
- // FIXME: This should write the entire span.
- TRY(file->write_some(DeprecatedString::formatted("{}\n", m_path_history[i]).bytes()));
+ TRY(file->write_until_depleted(DeprecatedString::formatted("{}\n", m_path_history[i]).bytes()));
return {};
}