Skip to content

Commit

Permalink
instead of breaking, warn and deprecate
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyoon committed Feb 23, 2023
1 parent c5c08eb commit 265fd39
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/jupynium/lua/helpers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 265fd39

Please sign in to comment.