Make posFromIndex and indexFromPos take lineSeparator into account
Make posFromIndex and indexFromPos take lineSeparator into account

Closes #3905

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