aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/ui.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-04-23 21:54:44 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-04-23 23:44:57 +0200
commit3fbc660d57f4726044662bde1bf52c527e45fb98 (patch)
treec75b91729467654d41d99dd8ab2e4f0d7556e79d /src/nvim/api/ui.c
parent2ed91f222f1dddda10fbdc9cb80df2be7d4c2da3 (diff)
downloadrneovim-3fbc660d57f4726044662bde1bf52c527e45fb98.tar.gz
rneovim-3fbc660d57f4726044662bde1bf52c527e45fb98.tar.bz2
rneovim-3fbc660d57f4726044662bde1bf52c527e45fb98.zip
api_set_error(): rename
Diffstat (limited to 'src/nvim/api/ui.c')
-rw-r--r--src/nvim/api/ui.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/nvim/api/ui.c b/src/nvim/api/ui.c
index 4c39bc57eb..26c0a8119b 100644
--- a/src/nvim/api/ui.c
+++ b/src/nvim/api/ui.c
@@ -55,12 +55,12 @@ void nvim_ui_attach(uint64_t channel_id, Integer width, Integer height,
FUNC_API_SINCE(1) FUNC_API_NOEVAL
{
if (pmap_has(uint64_t)(connected_uis, channel_id)) {
- _api_set_error(err, kErrorTypeException, _("UI already attached for channel"));
+ api_set_error(err, kErrorTypeException, _("UI already attached for channel"));
return;
}
if (width <= 0 || height <= 0) {
- _api_set_error(err, kErrorTypeValidation,
+ api_set_error(err, kErrorTypeValidation,
_("Expected width > 0 and height > 0"));
return;
}
@@ -126,7 +126,7 @@ void nvim_ui_detach(uint64_t channel_id, Error *err)
FUNC_API_SINCE(1) FUNC_API_NOEVAL
{
if (!pmap_has(uint64_t)(connected_uis, channel_id)) {
- _api_set_error(err, kErrorTypeException, _("UI is not attached for channel"));
+ api_set_error(err, kErrorTypeException, _("UI is not attached for channel"));
return;
}
remote_ui_disconnect(channel_id);
@@ -138,12 +138,12 @@ void nvim_ui_try_resize(uint64_t channel_id, Integer width,
FUNC_API_SINCE(1) FUNC_API_NOEVAL
{
if (!pmap_has(uint64_t)(connected_uis, channel_id)) {
- _api_set_error(err, kErrorTypeException, _("UI is not attached for channel"));
+ api_set_error(err, kErrorTypeException, _("UI is not attached for channel"));
return;
}
if (width <= 0 || height <= 0) {
- _api_set_error(err, kErrorTypeValidation,
+ api_set_error(err, kErrorTypeValidation,
_("Expected width > 0 and height > 0"));
return;
}
@@ -159,7 +159,7 @@ void nvim_ui_set_option(uint64_t channel_id, String name,
FUNC_API_SINCE(1) FUNC_API_NOEVAL
{
if (!pmap_has(uint64_t)(connected_uis, channel_id)) {
- _api_set_error(error, kErrorTypeException, _("UI is not attached for channel"));
+ api_set_error(error, kErrorTypeException, _("UI is not attached for channel"));
return;
}
UI *ui = pmap_get(uint64_t)(connected_uis, channel_id);
@@ -173,19 +173,19 @@ void nvim_ui_set_option(uint64_t channel_id, String name,
static void ui_set_option(UI *ui, String name, Object value, Error *error) {
if (strcmp(name.data, "rgb") == 0) {
if (value.type != kObjectTypeBoolean) {
- _api_set_error(error, kErrorTypeValidation, _("rgb must be a Boolean"));
+ api_set_error(error, kErrorTypeValidation, _("rgb must be a Boolean"));
return;
}
ui->rgb = value.data.boolean;
} else if (strcmp(name.data, "popupmenu_external") == 0) {
if (value.type != kObjectTypeBoolean) {
- _api_set_error(error, kErrorTypeValidation,
+ api_set_error(error, kErrorTypeValidation,
_("popupmenu_external must be a Boolean"));
return;
}
ui->pum_external = value.data.boolean;
} else {
- _api_set_error(error, kErrorTypeValidation, _("No such ui option"));
+ api_set_error(error, kErrorTypeValidation, _("No such ui option"));
}
}