mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
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:
parent
10fe3d6b28
commit
7fec8a5c9b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue