Skip to content

Commit 27eba9a

Browse files
committed
Quick update to PR #253 -- add back mvim and respect FPP_DISABLE_SPLIT environment variable
1 parent 062f4ad commit 27eba9a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def joinFilesIntoCommand(filesAndLineNumbers):
107107
cmd += ' +%d %s' % (firstLineNum, firstFilePath)
108108
for (filePath, lineNum) in filesAndLineNumbers[1:]:
109109
cmd += ' +"tabnew +%d %s"' % (lineNum, filePath)
110-
elif editor == 'vim':
110+
elif editor in ['vim', 'mvim'] and not os.environ.get('FPP_DISABLE_SPLIT'):
111111
firstFilePath, firstLineNum = filesAndLineNumbers[0]
112112
cmd += ' +%d %s' % (firstLineNum, firstFilePath)
113113
for (filePath, lineNum) in filesAndLineNumbers[1:]:

0 commit comments

Comments
 (0)