vim-plugin-minibufexpl icon indicating copy to clipboard operation
vim-plugin-minibufexpl copied to clipboard

Regression: Relative line numbering

Open saamalik opened this issue 12 years ago • 2 comments

Hi, I added relative line numbering by default set relativenumber in vimrc and the MiniBufExplorer is now showing line numbers as well.

I believe this is related to https://github.com/fholgado/minibufexpl.vim/pull/43

saamalik avatar Jul 29 '13 22:07 saamalik

Ok, figured out the problem.

diff --git a/plugin/minibufexpl.vim b/plugin/minibufexpl.vim
index 8ef2aa8..45e901b 100644
--- a/plugin/minibufexpl.vim
+++ b/plugin/minibufexpl.vim
@@ -639,7 +639,7 @@ function! <SID>StartExplorer(curBufNum)
   " them off for the MBE window
   setlocal foldcolumn=0
   setlocal nonumber
-  if exists("&norelativenumber")
+  if exists("&relativenumber")
     " relativenumber was introduced in Vim 7.3 - this provides compatibility
     " for older versions of Vim
     setlocal norelativenumber

My vim version:

$ vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Apr 29 2013 18:22:21)
Included patches: 1-918

saamalik avatar Jul 29 '13 23:07 saamalik

Okay, will fix in next relaese.

weynhamz avatar Aug 08 '13 05:08 weynhamz