Enhancement - edit

- The edit command now uses the .task file extension for temporary
  files during editing, so that syntax coloring can be invoked.
This commit is contained in:
Paul Beckingham 2009-07-01 19:32:19 -04:00
parent 10fe3d6b28
commit 7fec8a5c9b

View file

@ -536,7 +536,7 @@ std::string handleEdit ()
// Create a temp file name in data.location. // Create a temp file name in data.location.
std::stringstream pattern; std::stringstream pattern;
pattern << dataLocation << "/task." << task->id << ".XXXXXX"; pattern << dataLocation << "/task." << task->id << ".XXXXXX.task";
char cpattern [PATH_MAX]; char cpattern [PATH_MAX];
strcpy (cpattern, pattern.str ().c_str ()); strcpy (cpattern, pattern.str ().c_str ());
mkstemp (cpattern); mkstemp (cpattern);