From 41c617f2dae8888d826160dae77f532b8eb84d25 Mon Sep 17 00:00:00 2001 From: Dheepak Krishnamurthy Date: Sat, 20 May 2023 17:26:27 -0400 Subject: [PATCH] =?UTF-8?q?feat:=20Add=20deprecation=20message=20for=20old?= =?UTF-8?q?=20option=20=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/lazygit.vim | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/plugin/lazygit.vim b/plugin/lazygit.vim index 6bdabf1..6dce40d 100644 --- a/plugin/lazygit.vim +++ b/plugin/lazygit.vim @@ -19,8 +19,17 @@ if !exists('g:lazygit_use_neovim_remote') let g:lazygit_use_neovim_remote = executable('nvr') ? 1 : 0 endif +if exists('g:lazygit_floating_window_corner_chars') + echohl WarningMsg + echomsg "`g:lazygit_floating_window_corner_chars` is deprecated. Please use `g:lazygit_floating_window_chars` instead." + echohl None + if !exists('g:lazygit_floating_window_chars') + let g:lazygit_floating_window_chars = g:lazygit_floating_window_corner_chars + endif +endif + if !exists('g:lazygit_floating_window_chars') - let g:lazygit_floating_window_corner_chars = ['╭','─', '╮', '│', '╯','─', '╰', '│'] + let g:lazygit_floating_window_chars = ['╭','─', '╮', '│', '╯','─', '╰', '│'] endif " if lazygit_use_custom_config_file_path is set to 1 the