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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user