Skip to content

Commit

Permalink
Merge pull request #52 from tszg/develop
Browse files Browse the repository at this point in the history
windows system prohibits the use of stty
  • Loading branch information
nlamirault authored Nov 27, 2017
2 parents 4690158 + b306002 commit 448a4eb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions phpunit.el
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,12 @@ https://phpunit.de/manual/current/en/appendixes.annotations.html#appendixes.anno

(defun phpunit-get-compile-command (args)
"Return command string to execute PHPUnit from `ARGS'."
(let ((column-setting-command (format "stty cols %d" (frame-width)))
(command-separator "; ")
(phpunit-command (phpunit-get-program (phpunit-arguments args))))
(concat column-setting-command command-separator phpunit-command)))
(if (memq system-type '(windows-nt ms-dos))
(phpunit-get-program (phpunit-arguments args))
(let ((column-setting-command (format "stty cols %d" (frame-width)))
(command-separator "; ")
(phpunit-command (phpunit-get-program (phpunit-arguments args))))
(concat column-setting-command command-separator phpunit-command))))

(defun phpunit--colorize-compilation-buffer ()
"Colorize PHPUnit compilation buffer."
Expand Down

0 comments on commit 448a4eb

Please sign in to comment.