projects
/
hooke.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ran update-copyright.py
[hooke.git]
/
hooke
/
plugin
/
playlist.py
diff --git
a/hooke/plugin/playlist.py
b/hooke/plugin/playlist.py
index ca99339a498e78c2d255c1c0c58977d5eb075b07..ca800ee5a653f892c7b1f5addca51ae4dbc61820 100644
(file)
--- a/
hooke/plugin/playlist.py
+++ b/
hooke/plugin/playlist.py
@@
-1,4
+1,4
@@
-# Copyright (C) 2010-2012 W. Trevor King <wking@
drexel.edu
>
+# Copyright (C) 2010-2012 W. Trevor King <wking@
tremily.us
>
#
# This file is part of Hooke.
#
#
# This file is part of Hooke.
#
@@
-337,7
+337,7
@@
class RemoveCommand (PlaylistCommand):
super(RemoveCommand, self).__init__(
name='remove curve from playlist',
arguments=[
super(RemoveCommand, self).__init__(
name='remove curve from playlist',
arguments=[
- Argument(name='index', type='int', optional=
Fals
e, help="""
+ Argument(name='index', type='int', optional=
Tru
e, help="""
Index of target curve.
""".strip()),
],
Index of target curve.
""".strip()),
],
@@
-345,8
+345,11
@@
Index of target curve.
def _run(self, hooke, inqueue, outqueue, params):
playlist = self._playlist(hooke, params)
def _run(self, hooke, inqueue, outqueue, params):
playlist = self._playlist(hooke, params)
- playlist.pop(params['index'])
+ if params['index'] is None:
+ params['index'] = playlist.index()
+ curve = playlist.pop(params['index'])
playlist.jump(playlist.index())
playlist.jump(playlist.index())
+ outqueue.put(curve)
class ApplyCommand (PlaylistCommand):
class ApplyCommand (PlaylistCommand):