aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-11-25 08:56:42 -0800
committerGitHub <noreply@github.com>2019-11-25 08:56:42 -0800
commit36d1335a667d54c26ab7cca23bc60998cb8e0fb2 (patch)
treeaf85eb985ad73cad656b3b16221fde95bcbc0f68 /src/nvim/option.c
parent4a77df2e518a51ffd5a5fe311424b4b5305009a7 (diff)
downloadrneovim-36d1335a667d54c26ab7cca23bc60998cb8e0fb2.tar.gz
rneovim-36d1335a667d54c26ab7cca23bc60998cb8e0fb2.tar.bz2
rneovim-36d1335a667d54c26ab7cca23bc60998cb8e0fb2.zip
UI: emit mouse_on/mouse_off on attach #11455
closes #11372
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index 20351d3908..7c830da981 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -5173,6 +5173,13 @@ void ui_refresh_options(void)
}
ui_call_option_set(name, value);
}
+ if (p_mouse != NULL) {
+ if (*p_mouse == NUL) {
+ ui_call_mouse_off();
+ } else {
+ setmouse();
+ }
+ }
}
/*