Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
topydo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
topydo
Commits
92489d1f
Commit
92489d1f
authored
Apr 09, 2015
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13 from mruwek/fix-unset-EDITOR
topydo edit won't work if EDITOR is unset
parents
0e4557e0
08a6f743
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
topydo/lib/EditCommand.py
topydo/lib/EditCommand.py
+4
-1
No files found.
topydo/lib/EditCommand.py
View file @
92489d1f
...
@@ -29,7 +29,10 @@ class EditCommand(Command):
...
@@ -29,7 +29,10 @@ class EditCommand(Command):
if
not
super
(
EditCommand
,
self
).
execute
():
if
not
super
(
EditCommand
,
self
).
execute
():
return
False
return
False
try
:
editor
=
os
.
environ
[
'EDITOR'
]
or
'vi'
editor
=
os
.
environ
[
'EDITOR'
]
or
'vi'
except
(
KeyError
):
editor
=
'vi'
todo
=
config
().
todotxt
()
todo
=
config
().
todotxt
()
return
call
([
editor
,
todo
])
==
0
return
call
([
editor
,
todo
])
==
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment