Mercurial > vim
diff src/channel.c @ 12037:85f0f557661e v8.0.0899
patch 8.0.0899: function name mch_stop_job() is confusing
commit https://github.com/vim/vim/commit/2d33e90f81334eee34275a259444434abf56250f
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Aug 11 16:31:54 2017 +0200
patch 8.0.0899: function name mch_stop_job() is confusing
Problem: Function name mch_stop_job() is confusing.
Solution: Rename to mch_signal_job().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 11 Aug 2017 16:45:04 +0200 |
parents | 810480f1ecbf |
children | 2796a2c9fc17 |
line wrap: on
line diff
--- a/src/channel.c +++ b/src/channel.c @@ -4844,7 +4844,7 @@ job_stop_on_exit(void) for (job = first_job; job != NULL; job = job->jv_next) if (job->jv_status == JOB_STARTED && job->jv_stoponexit != NULL) - mch_stop_job(job, job->jv_stoponexit); + mch_signal_job(job, job->jv_stoponexit); } /* @@ -5191,7 +5191,7 @@ job_stop(job_T *job, typval_T *argvars, return 0; } ch_log(job->jv_channel, "Stopping job with '%s'", (char *)arg); - if (mch_stop_job(job, arg) == FAIL) + if (mch_signal_job(job, arg) == FAIL) return 0; /* Assume that only "kill" will kill the job. */