ZyX_I committed f46d88a

@/fwc/compiler: fixed optimizecompf broken by substitution of ==# operator with isnot#

Comments (0)

Files changed (1)


 "▶1 addjoinedmtchs  :: &self
 function s:compiler.addjoinedmtchs()
-    if !self.joinlists
-        let lststrs=[]
+    if !self.joinlists && !empty(self.ldstrs)
         let curldbase=self.getlvarid('curld').'_'
         let ambstrs=[]
         let i=0
                 \&& len(self.l[0])>2
                 \&& self.l[0][0] is# 'if'
                 \&& ((self.l[0][-1] is# 'endif'
-                \  && self.l[0][-3] isnot 'else')
-                \ || (self.l[0][-2] isnot 'else'))
+                \  && self.l[0][-3] isnot# 'else')
+                \ || (self.l[0][-2] isnot# 'else'))
         let conditions=[]
         let iftree=copy(self.l[0])
         while !empty(iftree)
             let type=remove(iftree, 0)
             if type is# 'if' || type is# 'elseif'
                 let [condition, block]=remove(iftree, 0, 1)
-                if block isnot# [['throw', s:cfstr]]
+                if block!=#[['throw', s:cfstr]]
                     return 0
                 call add(conditions, condition)
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
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.