Fix assignment of end styles when there are multiple active marks
Fix assignment of end styles when there are multiple active marks

We can't check for nextChange until all marks have been looked at

See https://discuss.codemirror.net/t/marktext-endstyle-appearing-multiple-times/568/5

xeronith/CodeMirror,ashmind/CodeMirror,jkaplon/CodeMirror,xeronith/CodeMirror,dperetti/CodeMirror,xeronith/CodeMirror,jkaplon/CodeMirror,kerabromsmu/CodeMirror,ficristo/CodeMirror,thomasjm/CodeMirror,alur/CodeMirror,crazy4chrissi/CodeMirror,mizchi/CodeMirror,bfrohs/CodeMirror,ashmind/CodeMirror,alur/CodeMirror,vincentwoo/CodeMirror,wingify/CodeMirror,MarcelGerber/CodeMirror,schanzer/CodeMirror,ThebingServices/CodeMirror,vincentwoo/CodeMirror,jayaprabhakar/CodeMirror,nightwing/CodeMirror,grzegorzmazur/CodeMirror,ficristo/CodeMirror,pabloferz/CodeMirror,namin/CodeMirror,mizchi/CodeMirror,jayaprabhakar/CodeMirror,nightwing/CodeMirror,codio/CodeMirror,Dominator008/CodeMirror,vincentwoo/CodeMirror,nightwing/CodeMirror,grzegorzmazur/CodeMirror,jkaplon/CodeMirror,namin/CodeMirror,ThebingServices/CodeMirror,schanzer/CodeMirror,INTELOGIE/CodeMirror,kerabromsmu/CodeMirror,Jisuanke/CodeMirror,bfrohs/CodeMirror,MarcelGerber/CodeMirror,Dominator008/CodeMirror,schanzer/CodeMirror,INTELOGIE/CodeMirror,TDaglis/CodeMirror,wingify/CodeMirror,dperetti/CodeMirror,hackmdio/CodeMirror,rrandom/CodeMirror,TDaglis/CodeMirror,hackmdio/CodeMirror,antimatter15/CodeMirror,antimatter15/CodeMirror,Jisuanke/CodeMirror,InternetGuru/CodeMirror,crazy4chrissi/CodeMirror,adobe/CodeMirror2,mtaran-google/CodeMirror,sourcelair/CodeMirror,InternetGuru/CodeMirror,notepadqq/CodeMirror,pabloferz/CodeMirror,MarcelGerber/CodeMirror,INTELOGIE/CodeMirror,Jisuanke/CodeMirror,SidPresse/CodeMirror,namin/CodeMirror,grzegorzmazur/CodeMirror,antimatter15/CodeMirror,hccampos/CodeMirror,wingify/CodeMirror,kerabromsmu/CodeMirror,codio/CodeMirror,sourcelair/CodeMirror,SidPresse/CodeMirror,ejgallego/CodeMirror,dperetti/CodeMirror,sourcelair/CodeMirror,InternetGuru/CodeMirror,ashmind/CodeMirror,mtaran-google/CodeMirror,notepadqq/CodeMirror,TDaglis/CodeMirror,ejgallego/CodeMirror,alur/CodeMirror,mizchi/CodeMirror,thomasjm/CodeMirror,hccampos/CodeMirror,Dominator008/CodeMirror,thomasjm/CodeMirror,ThebingServices/CodeMirror,ficristo/CodeMirror,notepadqq/CodeMirror,rrandom/CodeMirror,adobe/CodeMirror2,adobe/CodeMirror2,bfrohs/CodeMirror,mtaran-google/CodeMirror,jayaprabhakar/CodeMirror,hackmdio/CodeMirror,codio/CodeMirror,hccampos/CodeMirror,ejgallego/CodeMirror,crazy4chrissi/CodeMirror,rrandom/CodeMirror,pabloferz/CodeMirror,SidPresse/CodeMirror