From 248bc9362b0c5287797330ce5ff000e256e3be2d Mon Sep 17 00:00:00 2001 From: Kiyoon Kim Date: Thu, 23 Feb 2023 12:38:42 +0000 Subject: [PATCH] instead of breaking, warn and deprecate --- src/jupynium/lua/helpers.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/jupynium/lua/helpers.lua b/src/jupynium/lua/helpers.lua index c92f67a..2d60261 100644 --- a/src/jupynium/lua/helpers.lua +++ b/src/jupynium/lua/helpers.lua @@ -463,7 +463,8 @@ function Jupynium_kernel_change(bufnr, kernel_name) end function Jupynium_restart_kernel(bufnr) - Jupynium_notify.error { [[Sorry! Command name changed.]], [[Please use :JupyniumKernelRestart]] } + Jupynium_notify.warn { [[Sorry! Command name changed.]], [[Please use :JupyniumKernelRestart]] } + return Jupynium_kernel_restart(bufnr) end function Jupynium_kernel_restart(bufnr) @@ -494,7 +495,8 @@ function Jupynium_kernel_interrupt(bufnr) end function Jupynium_select_kernel(bufnr) - Jupynium_notify.error { [[Sorry! Command name changed.]], [[Please use :JupyniumKernelSelect]] } + Jupynium_notify.warn { [[Sorry! Command name changed.]], [[Please use :JupyniumKernelSelect]] } + return Jupynium_kernel_select(bufnr) end function Jupynium_kernel_select(bufnr)