Am 03.11.2011 18:25, schrieb Andy Wokula:

Not a bug, but the s:bufmod check isn't necessary.

*** -   Thu Nov 03 18:37:11 2011
--- test\C865.vim       Thu Nov 03 18:34:53 2011
***************
*** 11,19 ****
          " only after "write"
          let sav_pos = winsaveview()
          sil! undo
!         if !s:bufmod
!             set nomodified
!         endif
          call winrestview(sav_pos)
          return
      endif
--- 22,28 ----
          " only after "write"
          let sav_pos = winsaveview()
          sil! undo
!       set nomodified
          call winrestview(sav_pos)
          return
      endif
***************
*** 27,33 ****
                  set nomodified
              endif
          elseif a:situation == "write"
-             let s:bufmod = &modified
              sil %call s:DoIndentLine(indent(".") / 2)
          endif
      catch /:E21:/
--- 36,41 ----


--
Andy

--
You received this message from the "vim_use" 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

Reply via email to