Skip to content

Commit

Permalink
Revert "Only show numbers for listed buffers"
Browse files Browse the repository at this point in the history
This reverts commit 5265493.
  • Loading branch information
frace committed Apr 1, 2013
1 parent 5265493 commit c5a9e6d
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions plugin/number_toggle.vim
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@ function! NumberToggle()
endfunc

function! UpdateMode()
if buflisted(bufnr("%"))
if(g:focus == 0)
set number
elseif(g:insertmode == 0)
set relativenumber
else
set number
end
endif
if(g:focus == 0)
set number
elseif(g:insertmode == 0)
set relativenumber
else
set number
end

if !exists("&numberwidth") || &numberwidth <= 4
" Avoid changing actual width of the number column with each jump between
Expand Down

0 comments on commit c5a9e6d

Please sign in to comment.