From 3af77553274bc835ffcd5fbbc92421d8832ef7f2 Mon Sep 17 00:00:00 2001 From: rzvxa Date: Mon, 5 Feb 2024 21:20:32 +0330 Subject: [PATCH] refactor: use of `==#` instead of `==`. --- lib/nerdtree/creator.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nerdtree/creator.vim b/lib/nerdtree/creator.vim index 9aafb649..e794e0d9 100644 --- a/lib/nerdtree/creator.vim +++ b/lib/nerdtree/creator.vim @@ -254,9 +254,9 @@ function! s:Creator._nextBufferName(...) let type = '' end let name = s:Creator.BufNamePrefix() - if type == 'tab' + if type ==# 'tab' let name = name . 'tab_' - elseif type == 'win' + elseif type ==# 'win' let name = name . 'win_' endif let name = name . self._nextBufferNumber()