ZyX_I avatar ZyX_I committed ff59f29

Move fullundo option to undo.vim

Comments (0)

Files changed (3)

autoload/aurum/record.vim

             \         '@%aurum/tabutils': '0.0',
             \        '@%aurum/lineutils': '0.0',
             \             '@%aurum/edit': '1.5',
-            \             '@%aurum/undo': '0.0',
+            \             '@%aurum/undo': '1.0',
             \          '@%aurum/bufvars': '0.0',})
 let s:_options={
             \'recheight':    {'default': 0,
             \                  'filter': '(if type "" earg _  range 0 inf)'},
-            \'fullundo':     {'default': 1,
-            \                  'filter': 'bool'},
             \'recautowrite': {'default': 1,
             \                  'filter': 'bool'},
         \}
     let bvar.resetlines=s:F.resetlines
     let bvar.pulllines=s:F.pulllines
     let bvar.procundoleaf=s:F.procundoleaf
-    call s:_r.undo.setup(bvar, s:_f.getoption('fullundo'))
+    call s:_r.undo.setup(bvar)
     setglobal noautowrite noautowriteall noautoread
     setlocal noreadonly buftype=acwrite
     augroup AuRecordVimLeave

autoload/aurum/undo.vim

 "▶1 
 scriptencoding utf-8
-execute frawor#Setup('0.0', {'@/resources': '0.0'})
+execute frawor#Setup('1.0', {'@/resources': '0.0',
+            \                  '@/options': '0.0',})
 let s:_messages={
             \'noutree': 'No such item in saved undo tree. '.
             \           'If you can reproduce this error file a bug report',
         \}
 let s:r={}
 let s:hasundo=exists('*undotree')
+let s:_options={
+            \'fullundo':     {'default': 1,
+            \                  'filter': 'bool'},
+        \}
 "▶1 curundo :: () → UInt
 if s:hasundo
     function s:F.curundo()
     endfunction
 endif
 "▶1 r.setup
-function s:r.setup(bvar, undo_full)
+function s:r.setup(bvar)
     let a:bvar.undo_start=s:F.curundo()
     let a:bvar.undo_ct=b:changedtick
-    let a:bvar.undo_full=(s:hasundo && a:undo_full)
+    let a:bvar.undo_full=(s:hasundo && s:_f.getoption('fullundo'))
     if a:bvar.undo_full
         let a:bvar.undo_tree={a:bvar.undo_start : {}}
     endif
 @%aurum/record:
     0.1: Added |:AuRecord| amend.
     0.2: Officially added |g:aurum_fullundo|, added |g:aurum_recautowrite|.
+@%aurum/undo:
+    1.0: Moved |g:aurum_fullundo| definition here.
 
 vim: ft=help:tw=78
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.