Hello Vim developers,
I'm running Vim 7.4a BETA and have an issue with diff mode -When trying to exit
diff mode with :diffoff! the folding is not cleared as it was in older versions.
To reproduce:
>gvim -u NONE -c "for i in range(1,100) | call setline(i,i) | endfor"
inside Vim:
ggyG
:vnew
P " now, we have 2 almost-identical windows
:windo difft " you should see one folded chunk
:diffoff! " BUG: the folded chunk is still there!!
bugreport file is attached.
Thanks for your great work!!
Ramel
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
uname -a
Linux ramel-rh5 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64
x86_64 x86_64 GNU/Linux
VIM - Vi IMproved 7.4a BETA (2013 Jul 6, compiled Jul 8 2013 21:52:03)
Compiled by ramele@ramel-rh5
Normal version with GTK2 GUI. Features included (+) or not (-):
-arabic +cmdline_compl +dialog_con_gui -farsi +iconv
+localmap -mouse_jsbterm +netbeans_intg +quickfix
+statusline +textobjects +vreplace +xterm_clipboard
+autocmd +cmdline_hist +diff +file_in_path
+insert_expand -lua -mouse_netterm +path_extra +reltime
-sun_workshop +title +wildignore -xterm_save
+balloon_eval +cmdline_info +digraphs +find_in_path +jumplist
+menu -mouse_sgr -perl -rightleft
+syntax +toolbar +wildmenu
+browse +comments +dnd +float -keymap
+mksession -mouse_sysmouse +persistent_undo -ruby
+tag_binary +user_commands +windows
+builtin_terms -conceal -ebcdic +folding -langmap
+modify_fname -mouse_urxvt +postscript +scrollbind
+tag_old_static +vertsplit +writebackup
+byte_offset +cryptv -emacs_tags -footer +libcall
+mouse +mouse_xterm +printer +signs
-tag_any_white +virtualedit +X11
+cindent -cscope +eval +fork() +linebreak
+mouseshape +multi_byte -profile +smartindent -tcl
+visual -xfontset
+clientserver +cursorbind +ex_extra +gettext +lispindent
-mouse_dec +multi_lang -python -sniff
+terminfo +visualextra +xim
+clipboard +cursorshape +extra_search -hangul_input +listcmds
+mouse_gpm -mzscheme -python3 +startuptime
+termresponse +viminfo +xsmp_interact
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
system gvimrc file: "$VIM/gvimrc"
user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
system menu file: "$VIMRUNTIME/menu.vim"
fall-back for $VIM: "/home/ramele/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK
-I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12
-O2 -fno-strength-reduce -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L/lib64 -L/usr/local/lib -Wl,--as-needed -o vim -L/lib64
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0
-lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lSM -lICE
-lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -lncurses -lelf -lnsl -lselinux -lacl
-lattr -lgpm
--- Directories and Files ---
$VIM = "/home/ramele/share/vim"
directory "/home/ramele/share/vim" exists
$VIMRUNTIME = "/home/ramele/share/vim/vim74a"
directory "/home/ramele/share/vim/vim74a" exists
"/home/ramele/share/vim/vim74a/doc/help.txt" is readable
"/home/ramele/share/vim/vim74a/doc/tags" is readable
"/home/ramele/share/vim/vim74a/menu.vim" is readable
"/home/ramele/share/vim/vim74a/filetype.vim" is readable
"/home/ramele/share/vim/vim74a/syntax/synload.vim" is readable
--- Scripts sourced ---
1: ~/share/vim/vim74a/menu.vim
2: ~/share/vim/vim74a/autoload/paste.vim
3: ~/share/vim/vim74a/bugreport.vim
--- Options ---
ambiwidth=single cinoptions= equalalways nogdefault
noinfercase maxmemtot=2014480 printfont=courier shellredir=>&
nosplitright timeoutlen=1000 wildcharm=0
noautochdir cmdheight=1 equalprg= guifont=
noinsertmode menuitems=25 printmbcharset= noshelltemp
startofline title wildignore=
noautoindent cmdwinheight=7 noerrorbells guifontwide=
isprint=@,161-255 nomodeline printmbfont= shellxquote=
statusline= titlelen=85 nowildignorecase
noautoread colorcolumn= noesckeys guiheadroom=50
joinspaces modelines=5 printoptions= shellxescape=
suffixesadd= titlestring= nowildmenu
noautowrite columns=226 eventignore= guipty
key= nomodifiable prompt noshiftround
swapfile nottimeout wildmode=full
noautowriteall compatible noexpandtab guitablabel=
keymodel= nomodified pumheight=0 shiftwidth=8
swapsync=fsync ttimeoutlen=-1 wildoptions=
background=light completefunc= noexrc guitabtooltip=
keywordprg=man -s nomore quoteescape=\ shortmess=
switchbuf= ttybuiltin winaltkeys=menu
backspace= noconfirm fileformat=unix helpheight=20
langmenu= mouse=a readonly noshortname
synmaxcol=3000 ttyfast window=65
nobackup nocopyindent fileformats= helplang=en
laststatus=1 nomousefocus redrawtime=2000 showbreak=
syntax= ttymouse= winheight=1
backupcopy=yes cryptmethod=zip nofileignorecase nohidden
nolazyredraw mousehide regexpengine=0 noshowcmd
tabline= ttyscroll=999 nowinfixheight
backupext=~ nocursorbind filetype=help history=0
nolinebreak mousemodel=extend norelativenumber noshowfulltag
tabpagemax=10 undodir=. nowinfixwidth
backupskip=/tmp/* nocursorcolumn foldclose= nohlsearch
lines=53 mousetime=500 remap noshowmatch
tabstop=8 noundofile winminheight=1
balloondelay=600 nocursorline foldcolumn=0 icon
linespace=0 nonumber report=2 noshowmode
tagbsearch undolevels=1000 winminwidth=1
noballooneval debug= nofoldenable iconstring=
nolisp numberwidth=8 noruler showtabline=1
taglength=0 undoreload=10000 winwidth=20
balloonexpr= nodelcombine foldexpr=0 noignorecase
nolist omnifunc= rulerformat= sidescroll=0
notagrelative updatecount=200 wrap
nobinary dictionary= foldignore=# imactivatefunc=
listchars=eol:$ operatorfunc= scroll=12 sidescrolloff=0
tags=./tags,tags updatetime=4000 wrapmargin=0
nobomb nodiff foldlevel=0 imactivatekey=
noloadplugins nopaste noscrollbind nosmartcase
tagstack verbose=0 wrapscan
browsedir=last diffexpr= foldlevelstart=-1 noimcmdline
magic pastetoggle= scrolljump=1 nosmartindent
term=builtin_gui verbosefile= write
bufhidden= diffopt=filler foldmethod=manual noimdisable
makeef= patchexpr= scrolloff=0 nosmarttab
noterse viminfo= nowriteany
nobuflisted nodigraph foldminlines=1 iminsert=2
makeprg=make patchmode= nosecure softtabstop=0
notextauto virtualedit= writebackup
buftype=help display= foldnestmax=20 imsearch=2
matchtime=5 nopreserveindent selectmode= nospell
notextmode novisualbell writedelay=0
cdpath=,, eadirection=both formatexpr= imstatusfunc=
maxcombine=2 previewheight=12 shell=/bin/tcsh spellfile=
textwidth=0 warn
cedit= noedcompatible formatoptions=vt includeexpr=
maxfuncdepth=100 nopreviewwindow shellcmdflag=-c spelllang=en
thesaurus= noweirdinvert
charconvert= encoding=utf-8 formatprg= noincsearch
maxmapdepth=1000 printdevice= shellpipe=|& tee spellsuggest=best
notildeop whichwrap=
nocindent endofline fsync indentexpr=
maxmem=2014480 printencoding= shellquote= nosplitbelow
timeout wildchar=^E
backupdir=.,~/tmp,~/
breakat= ^I!@*-+;:,./?
casemap=internal,keepascii
cinkeys=0{,0},0),:,0#,!^F,o,O,e
cinwords=if,else,while,do,for,switch
clipboard=autoselect,exclude:cons\|linux
comments=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
commentstring=/*%s*/
complete=.,w,b,u,t,i
completeopt=menu,preview
cpoptions=aAbBcCdDeEfFgHiIjJkKlLmMnoOpPqrRsStuvwWxXyZ$!%*-+<>;
define=^\s*#\s*define
directory=.,~/tmp,/var/tmp,/tmp
errorfile=errors.err
errorformat=%*[^"]"%f"%*\D%l: %m,"%f"%*\D%l: %m,%-G%f:%l: (Each undeclared
identifier is reported only once,%-G%f:%l: for each function it appears
in.),%-GIn file included from %f:%l:%c:,%-GIn file included from
%f:%l:%c\,,%-GIn file included from %f:%l:%c,%-GIn file included from
%f:%l,%-G%*[ ]from %f:%l:%c,%-G%*[ ]from %f:%l:,%-G%*[ ]from %f:%l\,,%-G%*[
]from %f:%l,%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,"%f"\, line %l%*\D%c%*[^ ]
%m,%D%*\a[%*\d]: Entering directory `%f',%X%*\a[%*\d]: Leaving directory
`%f',%D%*\a: Entering directory `%f',%X%*\a: Leaving directory `%f',%DMaking
%*\a in %f,%f|%l| %m
fileencoding=utf-8
fileencodings=ucs-bom,utf-8,default,latin1
fillchars=vert:|,fold:-
foldmarker={{{,}}}
foldopen=block,hor,mark,percent,quickfix,search,tag,undo
foldtext=foldtext()
formatlistpat=^\s*\d\+[\]:.)}\t ]\s*
grepformat=%f:%l:%m,%f:%l%m,%f %l%m
grepprg=grep -n $* /dev/null
guicursor=n-v-c:block-Cursor/lCursor,ve:ver35-Cursor,o:hor50-Cursor,i-ci:ver25-Cursor/lCursor,r-cr:hor20-Cursor/lCursor,sm:block-Cursor-blinkwait175-blinkoff150-blinkon175
guioptions=aegimrLtT
helpfile=~/share/vim/vim74a/doc/help.txt
highlight=8:SpecialKey,@:NonText,d:Directory,e:ErrorMsg,i:IncSearch,l:Search,m:MoreMsg,M:ModeMsg,n:LineNr,N:CursorLineNr,r:Question,s:StatusLine,S:StatusLineNC,c:VertSplit,t:Title,v:Visual,V:VisualNOS,w:WarningMsg,W:WildMenu,f:Folded,F:FoldColumn,A:DiffAdd,C:DiffChange,D:DiffDelete,T:DiffText,>:SignColumn,-:Conceal,B:SpellBad,P:SpellCap,R:SpellRare,L:SpellLocal,+:Pmenu,=:PmenuSel,x:PmenuSbar,X:PmenuThumb,*:TabLine,#:TabLineSel,_:TabLineFill,!:CursorColumn,.:CursorLine,o:ColorColumn
include=^\s*#\s*include
indentkeys=0{,0},:,0#,!^F,o,O,e
isfname=@,48-57,/,.,-,_,+,,,#,$,%,~,=
isident=@,48-57,_,192-255
iskeyword=!-~,^*,^|,^",192-255
lispwords=defun,define,defmacro,set!,lambda,if,case,let,flet,let*,letrec,do,do*,define-syntax,let-syntax,letrec-syntax,destructuring-bind,defpackage,defparameter,defstruct,deftype,defvar,do-all-symbols,do-external-symbols,do-symbols,dolist,dotimes,ecase,etypecase,eval-when,labels,macrolet,multiple-value-bind,multiple-value-call,multiple-value-prog1,multiple-value-setq,prog1,progv,typecase,unless,unwind-protect,when,with-input-from-string,with-open-file,with-open-stream,with-output-to-string,with-package-iterator,define-condition,handler-bind,handler-case,restart-bind,restart-case,with-simple-restart,store-value,use-value,muffle-warning,abort,continue,with-slots,with-slots*,with-accessors,with-accessors*,defclass,defmethod,print-unreadable-object
matchpairs=(:),{:},[:]
maxmempattern=1000
mkspellmem=460000,2000,500
mouseshape=i-r:beam,s:updown,sd:udsizing,vs:leftright,vd:lrsizing,m:no,ml:up-arrow,v:rightup-arrow
nrformats=octal,hex
paragraphs=IPLPPPQPP TPHPLIPpLpItpplpipbp
path=.,/usr/include,,
printexpr=system('lpr' . (&printdevice == '' ? '' : ' -P' . &printdevice) . '
' . v:fname_in) . delete(v:fname_in) + v:shell_error
printheader=%<%f%h%m%=Page %N
runtimepath=~/.vim,~/share/vim/vimfiles,~/share/vim/vim74a,~/share/vim/vimfiles/after,~/.vim/after
scrollopt=ver,jump
sections=SHNHH HUnhsh
selection=inclusive
sessionoptions=blank,buffers,curdir,folds,help,options,tabpages,winsize
spellcapcheck=[.?!]\_[\])'"^I ]\+
suffixes=.bak,~,.o,.h,.info,.swp,.obj
termencoding=utf-8
titleold=Thanks for flying Vim
toolbar=icons,tooltips
toolbariconsize=small
ttytype=builtin_gui
viewdir=~/.vim/view
viewoptions=folds,options,cursor
--- Terminal codes ---
t_AB= t_cd= t_ut=y t_fs=
t_le=^H t_ms=y t_u7= t_sr=
t_us=^[|8h t_WP= t_ZH=^[|4h
t_AF= t_ce=^[|$ t_da= t_IE=
t_mb= t_nd=^L t_Sb= t_ts=
t_vb=^[|f t_WS= t_ZR=^[|4H
t_AL=^[|%p1%dI t_cl=^[|C t_db= t_IS=
t_md=^[|2h t_op= t_Sf= t_te=
t_ve= t_SI=
t_al=^[|i t_Co= t_DL=^[|%p1%dD t_ke=
t_me=^[|31H t_RI= t_se=^[|16H t_ti=
t_vi= t_EI=
t_bc= t_CS= t_dl=^[|d t_ks=
t_mr=^[|1h t_RV= t_so=^[|16h t_ue=^[|8H
t_vs= t_xs=
t_cm=^[|%p1%d;%p2%dM
t_cs=^[|%p1%d;%p2%dR
t_CV=^[|%p1%d;%p2%dV
--- Auto-Commands ---
buffer_list BufAdd
* call <SID>BMAdd()
buffer_list BufDelete
* call <SID>BMRemove()
buffer_list BufFilePost
* call <SID>BMAdd()
buffer_list BufFilePre
* call <SID>BMRemove()
SpellPopupMenu MenuPopup
* call <SID>SpellPopup()
--- Normal/Visual mode mappings ---
No mapping found
--- Insert/Command-line mode mappings ---
No mapping found
--- Abbreviations ---
No abbreviation found
--- Highlighting ---
SpecialKey xxx term=bold ctermfg=4 guifg=Blue
NonText xxx term=bold cterm=bold ctermfg=4 gui=bold guifg=Blue
Directory xxx term=bold ctermfg=4 guifg=Blue
ErrorMsg xxx term=standout cterm=bold ctermfg=7 ctermbg=1 guifg=White
guibg=Red
IncSearch xxx term=reverse cterm=reverse gui=reverse
Search xxx term=reverse ctermfg=0 ctermbg=3 guibg=Yellow
MoreMsg xxx term=bold ctermfg=2 gui=bold guifg=SeaGreen
ModeMsg xxx term=bold cterm=bold gui=bold
LineNr xxx term=underline ctermfg=3 guifg=Brown
CursorLineNr xxx term=bold ctermfg=3 gui=bold guifg=Brown
Question xxx term=standout ctermfg=2 gui=bold guifg=SeaGreen
StatusLine xxx term=bold,reverse cterm=bold,reverse gui=bold,reverse
StatusLineNC xxx term=reverse cterm=reverse gui=reverse
VertSplit xxx term=reverse cterm=reverse gui=reverse
Title xxx term=bold ctermfg=5 gui=bold guifg=Magenta
Visual xxx term=reverse cterm=reverse guibg=LightGrey
VisualNOS xxx term=bold,underline cterm=bold,underline gui=bold,underline
WarningMsg xxx term=standout ctermfg=1 guifg=Red
WildMenu xxx term=standout ctermfg=0 ctermbg=3 guifg=Black guibg=Yellow
Folded xxx term=standout ctermfg=4 ctermbg=7 guifg=DarkBlue
guibg=LightGrey
FoldColumn xxx term=standout ctermfg=4 ctermbg=7 guifg=DarkBlue guibg=Grey
DiffAdd xxx term=bold ctermbg=4 guibg=LightBlue
DiffChange xxx term=bold ctermbg=5 guibg=LightMagenta
DiffDelete xxx term=bold cterm=bold ctermfg=4 ctermbg=6 gui=bold guifg=Blue
guibg=LightCyan
DiffText xxx term=reverse cterm=bold ctermbg=1 gui=bold guibg=Red
SignColumn xxx term=standout ctermfg=4 ctermbg=7 guifg=DarkBlue guibg=Grey
Conceal xxx cleared
SpellBad xxx term=reverse ctermbg=1 gui=undercurl guisp=Red
SpellCap xxx term=reverse ctermbg=4 gui=undercurl guisp=Blue
SpellRare xxx term=reverse ctermbg=5 gui=undercurl guisp=Magenta
SpellLocal xxx term=underline ctermbg=6 gui=undercurl guisp=DarkCyan
Pmenu xxx ctermfg=0 ctermbg=5 guibg=LightMagenta
PmenuSel xxx ctermfg=0 ctermbg=7 guibg=Grey
PmenuSbar xxx ctermbg=7 guibg=Grey
PmenuThumb xxx ctermbg=0 guibg=Black
TabLine xxx term=underline cterm=underline ctermfg=0 ctermbg=7
gui=underline guibg=LightGrey
TabLineSel xxx term=bold cterm=bold gui=bold
TabLineFill xxx term=reverse cterm=reverse gui=reverse
CursorColumn xxx term=reverse ctermbg=7 guibg=Grey90
CursorLine xxx term=underline cterm=underline guibg=Grey90
ColorColumn xxx term=reverse ctermbg=1 guibg=LightRed
Cursor xxx guifg=bg guibg=fg
lCursor xxx guifg=bg guibg=fg
MatchParen xxx term=reverse ctermbg=6 guibg=Cyan
Normal xxx font=Monospace 10
--- Variables ---
menutrans_no_file [No file]
did_install_default_menus #1
did_toolbar_tmenu #1
bmenu_priority #60
ctags_command ctags -R .
i #100
paste#paste_cmd {'v': '"-c<Esc>:call paste#Paste()<CR>', 'i':
'x<BS><Esc>:call paste#Paste()<CR>gi', 'n': ':call paste#Paste()<CR>'}
more_save #0
bmenu_max_pathlen #35
b:changedtick #4
v:version #704
v:beval_winnr #0
v:lnum #0
v:scrollstart /home/ramele/share/vim/vim74a/bugreport.vim line 20
v:oldfiles [
v:dying #0
v:windowid #30408707
v:lang en_US.UTF-8
v:count #0
v:progname gvim
v:cmdbang #0
v:foldlevel #1
v:operator y
v:ctype en_US.UTF-8
v:prevcount #0
v:register "
v:mouse_win #0
v:count1 #1
v:foldstart #1
v:foldend #94
v:profiling #0
v:beval_col #0
v:errmsg E484: Can't open file
/home/ramele/share/vim/vim74a/reportbug.vim
v:beval_lnum #0
v:mouse_lnum #0
v:beval_bufnr #0
v:shell_error #0
v:servername GVIM1
v:lc_time en_US.UTF-8
v:searchforward #1
v:mouse_col #0
v:statusmsg No abbreviation found