<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -127,6 +127,7 @@ function! s:scmDiff(...)
     let tmpdiff = tempname()
     let cmd = 'cd ' . g:scmBufPath . ' &amp;&amp; ' . g:scmDiffCommand . ' ' . g:scmDiffRev . ' ' . expand('%:t') . ' &gt; ' . tmpdiff
     let cmdOutput = system(cmd)
+    let doWrap = &amp;wrap  &quot; Save the current state of wrap for later
 
     if v:shell_error &amp;&amp; cmdOutput != ''
         echohl WarningMsg | echon cmdOutput | echohl None
@@ -150,6 +151,9 @@ function! s:scmDiff(...)
     exe 'set filetype=' . ftype
 
     hide
+    if doWrap == 1  
+        set wrap  &quot;Restore the state of wrap
+    endif
 
     set foldcolumn=0
     set foldlevel=100</diff>
      <filename>scmdiff.vim</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3291d0c8821e3670fbbc96489410f5d59f77e894</id>
    </parent>
  </parents>
  <author>
    <name>shire</name>
    <email>shire@shirebook.local</email>
  </author>
  <url>http://github.com/ghewgill/vim-scmdiff/commit/c32b7ee964c8f1ff1a2940fc08a8a19ffff83c48</url>
  <id>c32b7ee964c8f1ff1a2940fc08a8a19ffff83c48</id>
  <committed-date>2009-07-08T14:38:17-07:00</committed-date>
  <authored-date>2009-07-08T14:38:17-07:00</authored-date>
  <message>Save and restore the original state of the wrap setting as it get's reset to 0 by vimdiff.</message>
  <tree>7d284b55c27a197d7615f26d4315581752d3bcd1</tree>
  <committer>
    <name>shire</name>
    <email>shire@shirebook.local</email>
  </committer>
</commit>
