Fix bug in intact range preservation, factor into separate function
Fix bug in intact range preservation, factor into separate function

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