'Round' viewport start and end to the neares non-hidden line
'Round' viewport start and end to the neares non-hidden line

This prevents the offset computations from becoming confused when the border
falls on a hidden line.

Closes #978

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