ZyX_I avatar ZyX_I committed 4048c16

Made delfunctions s: prefix handling less error-prone

Comments (0)

Files changed (2)


 execute frawor#Setup('0.0', {}, 1)
+let s:g.sidfpref=substitute(s:Eval('expand("<sfile>")[9:-5]'), s:g._sid,'%u','')
 "▶1 delfunctions
 function s:F.delfunctions(plugdict)
     let d={}
         let fstr=string(d.Function)[10:-3]
         if fstr[:1]==#'s:'
-            let fstr='<SNR>'.a:plugdict.sid.'_'.fstr[2:]
+            let fstr=printf(s:g.sidfpref, a:plugdict.sid).fstr[2:]
         elseif string(+fstr)==#fstr


-load: plugin/frawor/functions
-load: plugin/frawor
-load: plugin/writefile-feature
-load: plugin/ignoredeps-feature
-unloadpre: plugin/frawor/functions
-unloadpre: plugin/ignoredeps-feature
-unloadpre: plugin/writefile-feature
-unloadpre: plugin/frawor
-unload: plugin/frawor/functions
-unload: plugin/ignoredeps-feature
-load: plugin/frawor
-load: plugin/writefile-feature
-load: plugin/ignoredeps-feature
-load: plugin/frawor/functions
 load: plugin/frawor/functions
 load: plugin/frawor
 load: plugin/writefile-feature
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.