Skip to content

Commit

Permalink
Quick update to PR #253 -- add back mvim and respect FPP_DISABLE_SPLI…
Browse files Browse the repository at this point in the history
…T environment variable
  • Loading branch information
pcottle committed Jan 3, 2017
1 parent 062f4ad commit 27eba9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def joinFilesIntoCommand(filesAndLineNumbers):
cmd += ' +%d %s' % (firstLineNum, firstFilePath)
for (filePath, lineNum) in filesAndLineNumbers[1:]:
cmd += ' +"tabnew +%d %s"' % (lineNum, filePath)
elif editor == 'vim':
elif editor in ['vim', 'mvim'] and not os.environ.get('FPP_DISABLE_SPLIT'):
firstFilePath, firstLineNum = filesAndLineNumbers[0]
cmd += ' +%d %s' % (firstLineNum, firstFilePath)
for (filePath, lineNum) in filesAndLineNumbers[1:]:
Expand Down

0 comments on commit 27eba9a

Please sign in to comment.