Mercurial > vim
comparison src/channel.c @ 26439:b18f3b0f317c v8.2.3750
patch 8.2.3750: error messages are everywhere
Commit: https://github.com/vim/vim/commit/40bcec1bac34d34a3d4d7c5f6b2cc1f163acbd00
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Dec 5 22:19:27 2021 +0000
patch 8.2.3750: error messages are everywhere
Problem: Error messages are everywhere.
Solution: Move more error messages to errors.h and adjust the names.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 05 Dec 2021 23:30:05 +0100 |
parents | d25c0b0aad7d |
children | d413104a94c8 |
comparison
equal
deleted
inserted
replaced
26438:c725b8e17f1f | 26439:b18f3b0f317c |
---|---|
1208 channel->ch_part[PART_OUT].ch_mode = MODE_NL; | 1208 channel->ch_part[PART_OUT].ch_mode = MODE_NL; |
1209 if (opt->jo_set & JO_OUT_BUF) | 1209 if (opt->jo_set & JO_OUT_BUF) |
1210 { | 1210 { |
1211 buf = buflist_findnr(opt->jo_io_buf[PART_OUT]); | 1211 buf = buflist_findnr(opt->jo_io_buf[PART_OUT]); |
1212 if (buf == NULL) | 1212 if (buf == NULL) |
1213 semsg(_(e_nobufnr), (long)opt->jo_io_buf[PART_OUT]); | 1213 semsg(_(e_buffer_nr_does_not_exist), |
1214 (long)opt->jo_io_buf[PART_OUT]); | |
1214 } | 1215 } |
1215 else | 1216 else |
1216 { | 1217 { |
1217 int msg = TRUE; | 1218 int msg = TRUE; |
1218 | 1219 |
1255 buf = channel->ch_part[PART_OUT].ch_bufref.br_buf; | 1256 buf = channel->ch_part[PART_OUT].ch_bufref.br_buf; |
1256 else if (opt->jo_set & JO_ERR_BUF) | 1257 else if (opt->jo_set & JO_ERR_BUF) |
1257 { | 1258 { |
1258 buf = buflist_findnr(opt->jo_io_buf[PART_ERR]); | 1259 buf = buflist_findnr(opt->jo_io_buf[PART_ERR]); |
1259 if (buf == NULL) | 1260 if (buf == NULL) |
1260 semsg(_(e_nobufnr), (long)opt->jo_io_buf[PART_ERR]); | 1261 semsg(_(e_buffer_nr_does_not_exist), |
1262 (long)opt->jo_io_buf[PART_ERR]); | |
1261 } | 1263 } |
1262 else | 1264 else |
1263 { | 1265 { |
1264 int msg = TRUE; | 1266 int msg = TRUE; |
1265 | 1267 |