diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/eval.c | 11 | ||||
-rw-r--r-- | src/nvim/main.c | 2 | ||||
-rw-r--r-- | src/nvim/msgpack_rpc/channel.c | 2 |
3 files changed, 6 insertions, 9 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 9e4b110e8b..08ad33e60e 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -345,13 +345,6 @@ typedef enum { VAR_FLAVOUR_VIMINFO /* all uppercase */ } var_flavour_T; -/* - * Array to hold the value of v: variables. - * The value is in a dictitem, so that it can also be used in the v: scope. - * The reason to use this table anyway is for very quick access to the - * variables with the VV_ defines. - */ - /* values for vv_flags: */ #define VV_COMPAT 1 /* compatible, also used without "v:" */ #define VV_RO 2 /* read-only */ @@ -359,6 +352,10 @@ typedef enum { #define VV_NAME(s, t) s, {{t, 0, {0}}, 0, {0}}, {0} +// Array to hold the value of v: variables. +// The value is in a dictitem, so that it can also be used in the v: scope. +// The reason to use this table anyway is for very quick access to the +// variables with the VV_ defines. static struct vimvar { char *vv_name; /* name of variable, without v: */ dictitem_T vv_di; /* value and name for key */ diff --git a/src/nvim/main.c b/src/nvim/main.c index d2d252a425..9f4bc22ae0 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -1961,7 +1961,7 @@ static void mainerr(int n, const char *str) } -/// Prints help message and exits; used for 'nvim -h' & 'nvim --help' +/// Prints help message for "nvim -h" or "nvim --help" and exits. static void usage(void) { signal_stop(); // kill us with CTRL-C here, if you like diff --git a/src/nvim/msgpack_rpc/channel.c b/src/nvim/msgpack_rpc/channel.c index 25d41e7328..e8dab05ba0 100644 --- a/src/nvim/msgpack_rpc/channel.c +++ b/src/nvim/msgpack_rpc/channel.c @@ -723,7 +723,7 @@ static void complete_call(msgpack_object *obj, Channel *channel) static void call_set_error(Channel *channel, char *msg) { - ELOG("Msgpack-RPC error: %s", msg); + ELOG("msgpack-rpc: %s", msg); for (size_t i = 0; i < kv_size(channel->call_stack); i++) { ChannelCallFrame *frame = kv_A(channel->call_stack, i); frame->returned = true; |