mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-06 13:18:42 +02:00
support $EDITOR with arguments (bnc#619215)
This commit is contained in:
@@ -2632,8 +2632,10 @@ def run_pager(message):
|
||||
|
||||
def run_editor(filename):
|
||||
editor = os.getenv('EDITOR', default=get_default_editor())
|
||||
cmd = editor.split(' ')
|
||||
cmd.append(filename)
|
||||
|
||||
return subprocess.call([ editor, filename ])
|
||||
return subprocess.call(cmd)
|
||||
|
||||
def edit_message(footer='', template='', templatelen=30):
|
||||
delim = '--This line, and those below, will be ignored--\n'
|
||||
|
Reference in New Issue
Block a user