Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression: Relative line numbering #24

Open
saamalik opened this issue Jul 29, 2013 · 2 comments
Open

Regression: Relative line numbering #24

saamalik opened this issue Jul 29, 2013 · 2 comments
Labels

Comments

@saamalik
Copy link

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 fholgado#43

@saamalik
Copy link
Author

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

@weynhamz
Copy link
Owner

weynhamz commented Aug 8, 2013

Okay, will fix in next relaese.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants