diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2020-02-22 12:59:39 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-22 12:59:39 -0800 |
commit | 93c6eb4a668b52394667feca86d5e57731828528 (patch) | |
tree | dd7c5bb794851892cbaa37fb22f197bc7d946f37 /src/nvim/api/private/helpers.c | |
parent | ff1730373c6139db14b8f2f9b24d4ccd7fcfb01d (diff) | |
download | rneovim-93c6eb4a668b52394667feca86d5e57731828528.tar.gz rneovim-93c6eb4a668b52394667feca86d5e57731828528.tar.bz2 rneovim-93c6eb4a668b52394667feca86d5e57731828528.zip |
PVS/V618: fix printf-style args #11888
We intentionally do not translate API errors.
ref: https://github.com/neovim/neovim/issues/6150
Diffstat (limited to 'src/nvim/api/private/helpers.c')
-rw-r--r-- | src/nvim/api/private/helpers.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/api/private/helpers.c b/src/nvim/api/private/helpers.c index a1745ef777..a458762cc6 100644 --- a/src/nvim/api/private/helpers.c +++ b/src/nvim/api/private/helpers.c @@ -1544,7 +1544,7 @@ bool extmark_get_index_from_obj(buf_T *buf, Integer ns_id, Object obj, int *col = MAXCOL; return true; } else if (id < 0) { - api_set_error(err, kErrorTypeValidation, _("Mark id must be positive")); + api_set_error(err, kErrorTypeValidation, "Mark id must be positive"); return false; } @@ -1554,7 +1554,7 @@ bool extmark_get_index_from_obj(buf_T *buf, Integer ns_id, Object obj, int *col = extmark.col; return true; } else { - api_set_error(err, kErrorTypeValidation, _("No mark with requested id")); + api_set_error(err, kErrorTypeValidation, "No mark with requested id"); return false; } @@ -1565,7 +1565,7 @@ bool extmark_get_index_from_obj(buf_T *buf, Integer ns_id, Object obj, int || pos.items[0].type != kObjectTypeInteger || pos.items[1].type != kObjectTypeInteger) { api_set_error(err, kErrorTypeValidation, - _("Position must have 2 integer elements")); + "Position must have 2 integer elements"); return false; } Integer pos_row = pos.items[0].data.integer; @@ -1575,7 +1575,7 @@ bool extmark_get_index_from_obj(buf_T *buf, Integer ns_id, Object obj, int return true; } else { api_set_error(err, kErrorTypeValidation, - _("Position must be a mark id Integer or position Array")); + "Position must be a mark id Integer or position Array"); return false; } } |