[util/foldcode] Fix bug in indentRangeFinder
[util/foldcode] Fix bug in indentRangeFinder

Closes #1121

ashmind/CodeMirror,happibum/CodeMirror-main,djadmin/CodeMirror,fivetran/CodeMirror,antimatter15/CodeMirror,NumbersInternational/CodeMirror,manderson23/CodeMirror,Jisuanke/CodeMirror,crazy4chrissi/CodeMirror,Jisuanke/CodeMirror,abdelouahabb/CodeMirror,xeronith/CodeMirror,mtaran-google/CodeMirror,vincentwoo/CodeMirror,jayaprabhakar/CodeMirror,davidpham87/CodeMirror,KamranMackey/CodeMirror,rrandom/CodeMirror,InternetGuru/CodeMirror,pjkui/CodeMirror,grzegorzmazur/CodeMirror,rustemferreira/CodeMirror,TDaglis/CodeMirror,grzegorzmazur/CodeMirror,rustemferreira/CodeMirror,manderson23/CodeMirror,webida/CodeMirror,dbarnett/CodeMirror,joshterrell805-historic/CodeMirror,GerHobbelt/CodeMirror2,bfrohs/CodeMirror,sourcelair/CodeMirror,karthikeyansam/CodeMirror,vanloswang/CodeMirror,fmoliveira/CodeMirror,jhnesk/CodeMirror,bluesh55/CodeMirror,jayaprabhakar/CodeMirror,mihailik/CodeMirror,xeronith/CodeMirror,kangkot/CodeMirror,kuangyeheng/CodeMirror,elisee/CodeMirror,dperetti/CodeMirror,kerabromsmu/CodeMirror,skylarkcob/CodeMirror,wingify/CodeMirror,antimatter15/CodeMirror,notepadqq/CodeMirror,dudb/CodeMirror,crazy4chrissi/CodeMirror,apatawari/CodeMirror,davidpham87/CodeMirror,anthonygego/CodeMirror,r7kamura/CodeMirror,amshali/CodeMirror,nightwing/CodeMirror,ThebingServices/CodeMirror,camellhf/CodeMirror,ficristo/CodeMirror,agendor/CodeMirror,djadmin/CodeMirror,wbinnssmith/CodeMirror,kuangyeheng/CodeMirror,matthewbauer/CodeMirror,nightwing/CodeMirror,flyskyko/CodeMirror,DustinH/CodeMirror,schanzer/CodeMirror,belph/CodeMirror,manderson23/CodeMirror,angelozerr/CodeMirror,mizchi/CodeMirror,abdelouahabb/CodeMirror,axter/CodeMirror,karthikeyansam/CodeMirror,tpphu/CodeMirror,hackmdio/CodeMirror,sanyaade-iot/CodeMirror,flyskyko/CodeMirror,mightyguava/CodeMirror,pjkui/CodeMirror,TechnicalPursuit/CodeMirror,nightwing/CodeMirror,matthewbauer/CodeMirror,ZombieHippie/CodeMirror,DustinH/CodeMirror,angelozerr/CodeMirror,kerabromsmu/CodeMirror,amsul/CodeMirror,kangkot/CodeMirror,morrisonwudi/CodeMirror,sgoo/CodeMirror,bluesh55/CodeMirror,hccampos/CodeMirror,namin/CodeMirror,d0liver/CodeMirror,happibum/CodeMirror-main,thomasjm/CodeMirror,morrisonwudi/CodeMirror,pinbe/CodeMirror,rrandom/CodeMirror,kolya-ay/CodeMirror,sgoo/CodeMirror,bgrins/CodeMirror,codio/CodeMirror,CartoDB/CodeMirror,shiren/CodeMirror,sourcelair/CodeMirror,thomasjm/CodeMirror,camellhf/CodeMirror,philuchansky/CodeMirror,mightyguava/CodeMirror,TDaglis/CodeMirror,elisee/CodeMirror,Carreau/CodeMirror,kevinushey/CodeMirror,sekcheong/CodeMirror,r7kamura/CodeMirror,elisee/CodeMirror,MarcelGerber/CodeMirror,KamranMackey/CodeMirror,loopspace/CodeMirror,adobe/CodeMirror2,amireh/codemirror,qweasd1/CodeMirror,kk9599/CodeMirror,cintiamh/CodeMirror,EasonYi/CodeMirror,bocharsky-bw/CodeMirror,INTELOGIE/CodeMirror,karevn/CodeMirror,increpare/CodeMirror,systay/CodeMirror,vincentwoo/CodeMirror,amsul/CodeMirror,AlanWasTaken/codemirror,ksanaforge/CodeMirror,INTELOGIE/CodeMirror,InternetGuru/CodeMirror,qiankun007/CodeMirror,EasonYi/CodeMirror,isdampe/CodeMirror,dbarnett/CodeMirror,NeZaMy/CodeMirror2,ksanaforge/CodeMirror,TechnicalPursuit/CodeMirror,supriyantomaftuh/CodeMirror,loopspace/CodeMirror,Allenice/CodeMirror,adobe/CodeMirror2,ashmind/CodeMirror,grzegorzmazur/CodeMirror,shiren/CodeMirror,alur/CodeMirror,vincentwoo/CodeMirror,mizchi/CodeMirror,Jisuanke/CodeMirror,xeronith/CodeMirror,ficristo/CodeMirror,AlanWasTaken/codemirror,mtaran-google/CodeMirror,bgrins/CodeMirror,jpolitz/CodeMirror,InternetGuru/CodeMirror,sanyaade-iot/CodeMirror,Allenice/CodeMirror,trumanliu/CodeMirror,fivetran/CodeMirror,kuangyeheng/CodeMirror,webida/CodeMirror,INTELOGIE/CodeMirror,symbla/CodeMirror,pinbe/CodeMirror,Icenium/CodeMirror,djadmin/CodeMirror,dperetti/CodeMirror,ejgallego/CodeMirror,Aliccer/CodeMirror,crazy4chrissi/CodeMirror,Navaneethsen/CodeMirror,alur/CodeMirror,mihailik/CodeMirror,jansel/CodeMirror,cintiamh/CodeMirror,kangkot/CodeMirror,ejgallego/CodeMirror,namin/CodeMirror,bfrohs/CodeMirror,gkoberger/CodeMirror,dbarnett/CodeMirror,matthewbauer/CodeMirror,codio/CodeMirror,buchslava/CodeMirror,ThebingServices/CodeMirror,philuchansky/CodeMirror,buchslava/CodeMirror,jkaplon/CodeMirror,jessegrosjean/CodeMirror,sanyaade-iot/CodeMirror,d0liver/CodeMirror,mightyguava/CodeMirror,qiankun007/CodeMirror,isdampe/CodeMirror,mihailik/CodeMirror,kk9599/CodeMirror,Dominator008/CodeMirror,agendor/CodeMirror,jkaplon/CodeMirror,mizchi/CodeMirror,dperetti/CodeMirror,EasonYi/CodeMirror,belph/CodeMirror,trumanliu/CodeMirror,ksanaforge/CodeMirror,schanzer/CodeMirror,Ermlab/CodeMirror,qweasd1/CodeMirror,anthonygego/CodeMirror,jkaplon/CodeMirror,ssxxue/CodeMirror,melpon/CodeMirror,SidPresse/CodeMirror,bluesh55/CodeMirror,CartoDB/CodeMirror,ssxxue/CodeMirror,notepadqq/CodeMirror,hccampos/CodeMirror,Navaneethsen/CodeMirror,amshali/CodeMirror,rustemferreira/CodeMirror,cben/CodeMirror,fmoliveira/CodeMirror,bocharsky-bw/CodeMirror,rasata/CodeMirror,Dominator008/CodeMirror,Dominator008/CodeMirror,r7kamura/CodeMirror,jpolitz/CodeMirror,skylarkcob/CodeMirror,supriyantomaftuh/CodeMirror,ZombieHippie/CodeMirror,NumbersInternational/CodeMirror,fpco/codemirror,michaelerobertsjr/CodeMirror,increpare/CodeMirror,davidpham87/CodeMirror,ashmind/CodeMirror,dudb/CodeMirror,jessegrosjean/CodeMirror,systay/CodeMirror,karevn/CodeMirror,kevinushey/CodeMirror,ZombieHippie/CodeMirror,rasata/CodeMirror,SidPresse/CodeMirror,vanloswang/CodeMirror,TDaglis/CodeMirror,DustinH/CodeMirror,kerabromsmu/CodeMirror,jessegrosjean/CodeMirror,hackmdio/CodeMirror,systay/CodeMirror,ssxxue/CodeMirror,notepadqq/CodeMirror,wingify/CodeMirror,NumbersInternational/CodeMirror,symbla/CodeMirror,karevn/CodeMirror,webida/CodeMirror,vanloswang/CodeMirror,flyskyko/CodeMirror,schanzer/CodeMirror,mtaran-google/CodeMirror,tpphu/CodeMirror,ThebingServices/CodeMirror,fmoliveira/CodeMirror,kk9599/CodeMirror,d0liver/CodeMirror,wbinnssmith/CodeMirror,melpon/CodeMirror,Icenium/CodeMirror,jochenberger/CodeMirror,dudb/CodeMirror,Navaneethsen/CodeMirror,rrandom/CodeMirror,buchslava/CodeMirror,gkoberger/CodeMirror,ejgallego/CodeMirror,nawroth/CodeMirror,sourcelair/CodeMirror,Allenice/CodeMirror,loopspace/CodeMirror,apatawari/CodeMirror,abdelouahabb/CodeMirror,Carreau/CodeMirror,jansel/CodeMirror,sekcheong/CodeMirror,apatawari/CodeMirror,adobe/CodeMirror2,MarcelGerber/CodeMirror,amshali/CodeMirror,bocharsky-bw/CodeMirror,Ermlab/CodeMirror,SidPresse/CodeMirror,NeZaMy/CodeMirror2,happibum/CodeMirror-main,fpco/codemirror,Aliccer/CodeMirror,camellhf/CodeMirror,GerHobbelt/CodeMirror2,melpon/CodeMirror,morrisonwudi/CodeMirror,skylarkcob/CodeMirror,hccampos/CodeMirror,TechnicalPursuit/CodeMirror,pabloferz/CodeMirror,qiankun007/CodeMirror,belph/CodeMirror,bfrohs/CodeMirror,wingify/CodeMirror,increpare/CodeMirror,antimatter15/CodeMirror,ficristo/CodeMirror,hackmdio/CodeMirror,symbla/CodeMirror,axter/CodeMirror,sekcheong/CodeMirror,NeZaMy/CodeMirror2,codio/CodeMirror,shiren/CodeMirror,jpolitz/CodeMirror,pabloferz/CodeMirror,karthikeyansam/CodeMirror,jochenberger/CodeMirror,cben/CodeMirror,supriyantomaftuh/CodeMirror,joshterrell805-historic/CodeMirror,MarcelGerber/CodeMirror,thomasjm/CodeMirror,jayaprabhakar/CodeMirror,kolya-ay/CodeMirror,bgrins/CodeMirror,axter/CodeMirror,KamranMackey/CodeMirror,Icenium/CodeMirror,nawroth/CodeMirror,webida/CodeMirror,nawroth/CodeMirror,qweasd1/CodeMirror,cintiamh/CodeMirror,pinbe/CodeMirror,alur/CodeMirror,AlanWasTaken/codemirror,michaelerobertsjr/CodeMirror,Aliccer/CodeMirror,gkoberger/CodeMirror,rasata/CodeMirror,michaelerobertsjr/CodeMirror,isdampe/CodeMirror,trumanliu/CodeMirror,anthonygego/CodeMirror,jhnesk/CodeMirror,tpphu/CodeMirror,namin/CodeMirror,philuchansky/CodeMirror,pabloferz/CodeMirror,pjkui/CodeMirror,agendor/CodeMirror