diff --git a/src/edit.cpp b/src/edit.cpp index c92f0496d..6759bb51f 100644 --- a/src/edit.cpp +++ b/src/edit.cpp @@ -535,7 +535,8 @@ void editFile (Task& task) // Format the contents, T -> text, write to a file. std::string before = formatTask (task); - chdir (location.data.c_str ()); + int ignored = chdir (location.data.c_str ()); + ++ignored; // Keep compiler quiet. File::write (file.str (), before); // Determine correct editor: .taskrc:editor > $VISUAL > $EDITOR > vi