Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor drift on long lines #5515

Open
gtritchie opened this issue Mar 20, 2024 · 2 comments
Open

Cursor drift on long lines #5515

gtritchie opened this issue Mar 20, 2024 · 2 comments

Comments

@gtritchie
Copy link
Contributor

Describe the bug

The cursor drifts off the correct position with very long lines of text. Hitting enter to break the line ends up breaking it in a different location than it appeared it would.

Expected Behavior

The cursor's visual location should be accurate even on super-long lines.

Current Behavior

Paste the long line of text from "repro steps" below into Kitchen sink. Scroll to the end, then click after the comma as indicated here:

Screenshot 2024-03-20 154324

Hit enter, line breaks a couple characters to the right of where cursor appeared to be:

image

Reproduction Steps

data$aaicdcode.factor = factor(data$aaicdcode,levels=c("K","0","0000","0039","005","0059","0086","00863","012","013","0142","0149","0169","0224","0234","024414","0265","0309","0339","035","041","0410","0469","0479","0529","0532","0539","0549","0594","0703","07030","075","0781","0785","079","0846","0888","0980","0992","0995","1009","108300","109","1104","1105","1109","1119","112","1120","1121","1123","1129","1179","119","1279","1289","128900","1309","1319","1348","135","1369","139","1420","1629","1719","1739","1770","1830","185","189000","1891","1920","1940","194000","1948","194800","2","2009","2019","201900","2049","2051","2080","210600","2113","211300","211500","212700","214","214000","2141","2148","2149","2150","2154","2157","2159","216","216100","2163","2165","216500","216900","218","2189","2250","225000","227","227000","227100","2280","22800","228000","2302","2329","233","2331","2345","235100","2360","2370","237000","2377","23770","237700","2380","238000","2384","2388","239000","2396","239600","2397","24","2409","2420","2429","24390","24398","24399","243990","2449","2452","246800","2469","246990","2500","250100","2509","2510","251100","2512","2518","2521","252100","252828","2530","253000","2531","2532","25320","2533","25330","2534","25348","2535","25382","255","2552","25520","255200","255260","25529","2554","255500","255800","2559","255900","256","2561","2564","256400","2578","257800","259490","25989","2599","259900","2669","267","2689","2690","27000","27002","2701","270100","2702","27020","270200","27029","2703","2704","27040","27069","27071","2708","270820","270880","271000","27101","271010","271080","271120","27119","2713","2718","27180","27181","27182","27188","27190","272","2720","27200","272000","2727","27281","272880","2738","274","27442","2749","2750","275000","2751","275100","2753","27530","275300","27533","2754","27540","275400","27542","27547","2758","276200","27621","276210","276220","27623","2765","2767","2770","277000","2771","277100","277200","2773","2774","27742","277490","2775","277500","27751","277520","27753","277540","27762","277620","2778","27785","27787","27788","277880","2779","277900","2780","2781","27900","27902","279020","27910","279100","27911","279200","279210","27928","2793","279300","2798","28099","2810","2811","2812","2819","282","2820","282000","2821","282100","28220","282200","282290","2824","28240","282400","28241","282410","28243","28244","282450","282480","28249","282600","28279","282790","2830","2832","2840","284000","284010","284020","28408","28409","284090","2849","2859","2860","286000","286100","2863","28638","286380","286400","2867","2869","286900","2870","28719","2873","287300","287310","287390","2875","28800","2881","2882","2883","2893","2895","2898","28981","2899","289900","2959","2968","2969","2989","2990","299000","2998","2999","2EGRAA","3","3000","30000","30001","3002","3005","3009","3016","3018","30183","3030","3039","3061","3072","3074","308","3089","3098","311","3129","3140","31400","31401","3142","314200","3148","3149","315","315000","3153","3154","315400","3155","315500","315599","315800","315888","3159","315900","317000","318","318.0","3180","318100","3182","3189","319","3190","31900","319000","3199","3239","327","3273","3300","330000","330020","3301","330100","3308","3309","331900","3323","333290","3334","333400","3335","3336","3339","3340","3341","3342","334200","3343","334300","3348","334800","335000","3351","335100","335200","3358","335800","336000","3369","3379","337900","340","341","3411","341400","342000","342900","3430","34301","3431","3432","343200","3439","343900","3440","344400","3449","344900","345","345.9","34500","3450a00","3451","34510","345100","345120","345190","3455","3456","345600","3459","345900","345990","3468","3469","347","3470","3480","34800","348000","3483","348300","348800","3489","34982","349900","35","3500","3510","351000","351800","351900","3530","3536","354","3540","3559","3560","35600","3561","356100","35650","356800","3569","356900","3570","3589","358900","359","3590","35900","359000","35901","35908","359080","35909","359090","3591","35910","359100","35911","359120","359130","35918","35919","359190","3592","35920","359200","35929","3593","3598","359800","3599","35999","3600","3611","3618","36229","3623","36250","3627","36270","362700","36272","362720","36273","36274","36275","36276","36278","36279","3628","362900","36311","363110","363200","3640","3643","366","3669","3670","3671","367100","367200","3680","368010","36840","36846","3685","368500","36854","36859","3688","3689","368900","3690","369000","369230","3698","3699","369900","3703","371500","372","3730","37482","375","376300","378","3780","37800","378000","3781","3783","37854","37871","3788","3789","378900","379400","37941","3795","379500","37951","3799","379900","37999","3829","3860","38600","3869","387900","3884","3886","3887","389","3890","38900","389000","3891","38910","389100","3892","389200","389700","3898","389800","3899","389900","3979","40","401","4019","403","405","412","4140","4151","4160","416000","4186","4200","425","4251","425100","4253","4254","425400","42542","425420","42549","425490","4258","425800","42588","4259","42599","4260","426000","4261","426130","42671","426710","4268","426800","42682","42688","426900","427","4270","4271","4272","4274","4278","427800","42781","4279","427900","429","4299","431000","4349","4359","436","4388","4430","4449","4464","4470","4476","4478","4480","448000","4489","449","4519","453","453300","4538","4539","4549","4558","4568","4571","4578","4589","459","4599","460","461","4619","462","463","464","4640","4641","4644","4659","471","4718","4720","473","4739","477","4770","4778","4779","4781","47875","484","486","487","4871","4878","4881","490","492","4928","493","4930","4939","496","5118","511800","5119","512","5198","52","5200","520000","5202","520200","5204","5205","52050","520500","52051","52058","520580","5206","52063","520800","521","5210","5211","5219","5220","5231","5233","52400","524000","52401","52402","52403","52405","524050","5241","52410","524100","5264","5265","5282","528400","529000","5301","53010","5308","53081","531","5319","5321","5329","5350","5355","5368","5371","5379","539","5400","541","5410","5419","542000","5443","549","550","550000","5509","550900","5531","553100","55329","5559","556","5560","5561","5562","55678","5589","5601","5640","564000","56402","5641","565","568800","571","5714","5716","5718","5733","5739","574","5740","5741","5742","5750","5751","5759","5761","5762","5768","5770","5790","5798","57983","581","5819","5822","5829","5831","5839","585","588100","588890","59","5901","5908","591","592","5920","593000","5934","5937","593700","5938","5939","5942","5951","5959","5969","5990","5997","603","605","605000","6110","6117","6159","6160","6161","617","6179","6181","6190","6202","6208","6210","6214","6218","6221","6227","6228","6235","6245","6251","6253","6255","6259","6266","6268","630","631","632","6338","6339","6349","6399","6400","6409","6411","6412","6419","6420","6424","6426","6429","6430","6431","6439","6440","6442","6460","6461","6462","6463","6465","6466","6467","6468","6474","6478","6480","6482","6483","6484","6487","6488","6489","6510","6522","6523","6530","6531","6540","6541","6542","6544","6545","6546","6553","6561","6562","6563","6564","6565","6566","6567","656800","657","658","6580","658000","6581","6582","6584","6589","6614","6619","6635","6639","6640","6710","6711","6718","6719","6778","6800","6806","6809","6820","6825","6828","6829","684","685000","6851","685100","6859","685900","686","6869","690","691","6918","6924","6927","69270","69279","692790","69289","6929","6931","6940","6944","6952","6953","6954","695400","696","6960","6961","6963","6983","6989","7010","7011","703","7030","7040","704100","704200","7048","705","706","7061","706200","7068","7070","7071","708","7088","7090","70900","7099","709900","7100","710100","7102","7103","7108","7119","714","7140","715200","7158","7159","7165","7169","7188","71880","71885","7194","71944","7195","7199","7200","720000","721","7222","722358","722900","723","7231","724","72409","7242","7243","7245","725","7260","7266","726880","7269","726900","72705","7273","728","728200","7284","7286","7288","728999","7290","7291","7292","72982","7302","7312","7320","732000","7321","73300","733020","7336","7339","734","7350","736000","737000","737100","7373","73743","7399","740","7400","740000","740010","74002","740020","740080","74009","740090","740100","74011","740110","740120","74019","740190","74021","740210","74022","740290","740999","741","741000","741050","74109","741090","741099","741100","74111","741110","74112","74113","741130","741140","741150","74116","741160","74117","741170","74121","741210","74122","741220","74123","741230","741240","74125","741250","741260","74127","741270","74129","741290","741880","7419","741900","74191","741910","74192","741920","74193","741930","74194","741940","74195","741950","74196","741960","74197","741970","74198","74199","741990","741999","742","7420","742000","742011","742012","742013","742014","742019","742021","742022","742023","742029","742080","742090","7421","742100","742101","7422","742200","742201","74221","742210","742211","742212","742218","742219","74223","742230","742231","742232","742238","74224","742240","742241","74225","742250","74226","742260","742261","742262","742265","742267","742268","742269","74228","742280","74229","742290","7423","74230","742300","74231","742310","742311","742314","742315","742316","742318","742319","742320","74238","742380","742390","742399","7424","742402","742409","74241","742410","74242","742420","74243","74244","742440","74245","742450","74246","742460","74248","742480","74251","74252","742520","74254","74255","74258","742580","74259","742801","742821","74288","742880","7429","742900","742901","74299","742990","743","7430","743000","74301","743010","74302","743022","743100","743101","74320","743200","743201","74321","743211","743220","743221","743238","743301","74332","743320","74333","74334","743340","743400","743401","74341","743420","743421","74343","743430","74344","743440","743442","743448","74345","74346","743460","74348","743480","743490","743500","743501","743508","74351","743510","74352","743520","74353","74354","74357","74358","74359","743590","7436","743600","743601","743602","743603","743608","74361","743610","743620","74363","743630","743631","743638","743640","743641","74365","74366","74367","743670","743681","743682","743688","74369","743690","7438","743800","743880","7439","743990","744","74400","744000","74401","744010","744021","744022","744028","74403","744030","744038","744039","74409","744090","744100","744101","74411","744110","74412","744200","744201","74421","744210","744220","74423","744230","744231","744233","744234","744238","74424","744240","744241","744242","74428","744280","744290","744300","74439","744390","74440","744400","744401","744402","744404","74441","744410","744421","744424","74448","744480","7445","7445_0","744500","74451","74459","744800","744801","74481","744810","74483","74484","744840","74488","744880","744900","744908","744909","74491","744910","744919","744980","745","745...","74500","745000","745001","745002","745003","745009","74501","745010","745090","7451","74510","745100","745101","745102","74511","745110","745111","745112","745120","745121","745122","74513","745130","74518","745180","745190","74520","745200","745210","745300","745331","745332","745333","745335","745337","745339","7454","74540","745400","74544","74545","745450","74546","745460","74547","745470","74548","745480","74549","745490","745499","7455","74550","745500","74551","745510","745511","745519","745551","745568","74558","745580","74559","745590","7456","74560","745600","745610","74562","745620","74563","745630","74568","745680","74569","745690","745700","745731","745800","7459","745900","745990","746","746000","746001","746002","746009","74601","746010","746011","746019","74602","74604","74608","746080","746089","74611","746111","746112","746113","746114","746116","746118","746120","746161","746178","746190","7462","746200","74628","746300","74631","746310","74632","746320","746360","746380","7464","746400","74641","746410","74642","746420","74648","746480","74649","746490","746500","74651","746510","74652","746520","7466_0","746600","74661","746610","74662","74668","746680","74669","746690","7467","746700","74671","746710","746720","746730","74674","746740","74675","746750","746778","74679","746790","7468","74680","746800","746820","74683","746830","746831","746832","746833","74685","74686","746860","746870","74688","746880","746881","746888","746889","746892","7469","74690","746900","74691","74694","74698","746988","74699","746990","746999","7470","74700","747000","747030","747080","747099","7471","74710","747100","74711","747110","747120","74719","747190","7472","747200","747201","747202","747203","747209","74721","747210","74722","747220","74723","747230","747250","747251","747252","747253","747259","74726","747260","747269","74727","747270","74728","747280","747289","74729","747290","747300","747310","747311","74732","747320","747321","747325","747329","747335","747338","747339","747340","747380","7474","747400","74741","747410","747419","74742","747420","747421","747422","747429","74743","747430","747438","747439","747440","747441","747472","74748","747480","747481","747482","747484","747488","747499","7475","74750","747500","7476","747600","747620","747630","74764","747640","7478","74780","747800","74781","747810","747880","74789","7479","747900","748000","748001","748009","74801","748011","748019","748029","748059","748061","748069","74810","748100","748101","748130","748180","748188","748190","74823","748230","7483","748300","748301","748304","74831","748310","74832","748320","748330","748331","748332","748338","748340","748342","748352","748360","748364","74838","748380","74839","7484","748410","748422","74848","748480","74850","748500","748501","74851","748510","74852","748520","748580","74859","74860","748620","748621","748622","748623","74868","74869","748690","74888","748880","748900","748929","749","7490","749000","749001","749002","749010","749015","749019","74902","749020","74903","749043","74905","74906","749060","749069","749070","749071","749072","74908","749080","749088","74909","749090","749091","749092","749093","749094","749095","749096","749099","7491","74910","749100","749101","749102","749103","749104","749105","749106","749109","749110","749111","749112","749119","749121","74919","749190","749198","749199","7492","74920","749200","749201","749202","749203","749204","749205","749209","74921","749210","749211","749212","749220","749231","749280","749288","74929","749290","749291","749299","7493","749840","74999","749999","7500","750000","750080","75011","750110","75012","750120","750130","750150","75018","750180","75019","75021","750210","75022","750220","75024","750240","75025","750250","750260","75027","750270","75028","750280","750281","750283","750284","750285","750288","750289","750291","750292","7503","75030","750300","75031","750310","750311","750312","750319","75032","750320","750321","750331","750333","750342","75038","750380","75039","750390","7504","75041","75049","75050","750500","75051","750510","750516","750550","750601","750700","750701","75078","75079","7508","75100","751000","75101","751010","75103","75110","751100","751102","751103","751104","751110","751111","751112","751119","751120","751122","751123","751129","751192","751193","751199","7512","751201","751202","751210","751212","751220","751221","75123","751230","75124","751240","751241","751242","751243","751244","751245","751249","751288","75129","751290","751299","7513","7513_0","751300","751311","75132","75133","751330","751340","7514","75140","751400","751401","751402","751403","751412","75142","751480","75149","751490","751500","751503","751504","751520","75153","751530","751531","751533","751550","75158","751580","751581","751588","751590","751599","751601","751610","751611","751613","75162","751620","75163","751630","75165","751650","751651","751652","751653","751654","75166","751660","751672","75168","7517","751706","75172","751720","75178","751780","751790","75180","75188","7519","751900","751990","752000","752002","752010","75203","752030","75204","752040","752080","752081","752088","75209","752090","752101","752102","752190","752199","7522","752200","752211","75222","7523","75230","752300","752301","75238","752380","752381","752382","752388","752399","752410","752411","752412","752413","752431","752432","752438","752440","752441","752442","752448","752451","752458","752480","752488","752490","752499","7525","75250","752500","752501","75251","752510","752511","752521","752531","752588","7526","75260","752600","752601","752602","752603","752604","752608","752609","752611","752621","75264","75269","752690","752703","752741","752790","752799","7528","75280","752800","752801","752802","752810","752812","752813","75282","752820","752821","752828","752831","752835","752841","752848","752851","752852","752853","752854","75286","752860","752868","752871","752878","752880","752888","752900","752999","753","753000","753001","753002","753003","75301","753010","753011","753012","753021","753090","7531","753101","75311","753110","753111","753112","75312","753120","753121","753122","75313","753130","75316","753160","753161","753162","75317","753170","75318","753180","753181","753188","753190","7532","75320","753200","753201","75321","753210","753211","753220","753221","75323","753230","75324","753240","75325","753250","75329","753290","75330","753300","75331","753310","75332","753320","753321","75333","753330","75334","753340","75335","753350","753363","75338","753380","753390","7534","753400","753401","75341","753410","753411","75342","75343","75348","753480","753500","753501","753503","75351","753510","75360","753600","753601","75361","753610","75362","753620","75363","753630","75364","753640","75368","75369","753690","7537","75370","753700","753790","7538","753801","753810","75382","75383","75384","75385","75388","753880","753888","7539","753900","753909","753929","753939","753988","75399","753990","753999","7540","754000","754001","75401","754010","75402","754020","754021","754023","754024","754025","754026","75403","754030","754042","75405","754050","754051","75406","754061","754062","754064","754068","754069","754080","754090","75411","754110","754120","7542","75420","754200","754201","754202","754204","754205","75421","75422","754220","754228","754280","754288","7543","75430","754300","754301","754302","754303","754304","75431","754310","754312","754388","754390","754399","75440","754400","754401","754410","754413","75442","754420","75443","75444","754440","754460","754488","754490","7545","75450","754500","75451","754510","754520","754521","754522","75453","754530","75459","754590","754600","754601","754602","754603","75461","754610","754690","7547","754700","754701","754702","754710","754720","75473","754730","754731","754739","75478","754780","75479","754790","7548","75480","754800","75481","754810","754811","754812","754813","75482","754820","75483","75484","754841","754843","754844","754850","75486","75488","754880","754888","754889","75490","754980","75499","754999","7550","75500","755000","755001","755002","755003","755004","755009","75501","755010","755011","755012","755013","755014","755015","755016","755017","755018","755019","75502","755020","755021","755022","755023","755024","755025","755027","755029","755031","755032","755034","755039","75504","755040","755041","755043","755044","755045","755046","755047","755048","75505","755050","755080","755088","75509","755090","755099","7551","75510","755100","755101","755102","755103","755104","755109","75511","755110","755119","75512","755120","755121","755122","755123","755124","755125","755129","75513","755130","755174","75519","755190","755199","75520","755202","755203","755204","755211","75522","755220","755222","755223","75523","755230","755232","755233","755234","75524","755240","755242","755243","755244","755245","755246","755247","755248","75525","755250","755251","755252","755253","755254","755258","755260","755261","755262","755263","755265","755266","755269","755270","755271","755272","755273","755278","75528","755280","755289","755290","7553","755301","755303","755311","755315","755316","755317","755321","755323","755330","755331","755332","755333","755338","755340","755341","755343","755345","755346","755347","755348","75535","755350","755351","755352","755353","755354","755355","755358","75536","755361","755362","755363","755371","755372","755373","755378","75538","755380","75539","755400","75548","755480","755488","755490","7555","75550","755500","755501","755502","755503","755505","755506","755507","755509","75551","755510","755511","755512","755513","755515","755517","75552","755520","755528","755532","75554","755540","755549","75555","755550","755551","755552","755553","755554","755558","75556","755560","755568","75558","755580","755581","755582","755583","755584","755585","755588","75559","755590","7556","755600","755602","755603","755608","755609","75561","755610","755611","755612","755613","755614","755616","75563","755630","75564","755640","755641","755643","755644","755648","755650","755651","75566","755660","755661","755662","755668","755670","755678","75568","755680","755681","755682","755683","755688","75569","755690","755699","7558","755800","755801","755802","755803","755804","755809","755810","755811","75588","755880","755888","7559","755900","755988","7560","75600","756000","756001","756002","756003","756005","756006","756007","756008","756010","756011","75602","756020","756021","756022","756030","756031","756032","756040","756041","756050","75606","756061","75607","756070","75608","756080","75609","756090","75610","756100","756101","756102","75611","756111","756120","756121","756122","756128","756130","75614","756140","75615","756150","756151","756152","756153","756154","756158","75616","756160","756161","756162","756163","756168","75617","756170","756171","756172","756173","756175","756177","756178","75618","756180","756188","75619","756190","7562","756200","7563","75630","756300","756301","75631","756310","75632","756320","75633","756330","75634","756340","756361","756362","75638","756380","75639","756390","756398","7564","756400","756401","756402","756404","756405","75643","756431","756433","75644","756440","756441","756443","756445","756452","75646","756461","75647","756470","756471","75648","756480","75649","756490","75650","756500","756501","756502","756511","756518","75652","75654","756541","75656","75657","756571","756572","756580","756581","756588","756590","756600","75661","756610","756611","756612","756613","756614","756615","756618","756619","75662","756620","75668","756680","756688","756701","756703","756710","756711","75672","756720","756721","75679","756790","756800","756801","75681","756810","75683","756831","75685","756850","756851","756853","756860","75688","756880","756882","756885","756888","75689","75690","756900","756901","756911","756921","756940","756941","75699","756990","756999","7570","757000","75701","757010","75704","7571","757100","757111","75713","757130","75719","757190","7572","75720","757200","757201","75721","757210","757211","75722","757220","75724","757240","75728","757280","75729","757290","7573","75730","757300","75731","757310","75732","757320","75733","757330","757331","757333","757338","757339","75734","757340","757342","757348","757349","75735","757351","757352","757379","75738","757380","757381","757383","757384","757385","757386","757389","75739","757390","757396","757397","757398","757399","757400","757401","757409","757410","757431","757450","757471","757472","75748","757480","75749","75750","757500","75758","757580","75759","757601","757610","75764","757640","75765","757650","75766","75768","757680","757800","75784","7579","757900","758","7580","75800","758000","758001","758002","758009","75801","758020","758021","758022","758041","75809","758090","758091","758099","758101","758102","758113","758120","758121","758191","758200","758201","758202","758212","758288","75829","758291","7583","758300","758301","758302","758303","758304","758308","758309","75831","758311","75832","758321","758323","758329","758331","758332","758333","758335","758341","758342","758348","758352","758353","758359","75836","758371","758372","758374","758375","758376","758377","758379","758381","758382","758384","758386","758387","758388","758393","758396","758398","7584","75840","75841","758410","758411","75843","758431","758433","758435","758436","758439","758441","758443","758512","758517","758520","758524","75853","758530","758531","758532","758533","758534","758535","758536","758537","758538","758539","75854","758542","758543","758544","758545","758546","758547","758549","758550","758553","758554","758555","758559","75858","758580","758581","758583","758584","758585","758588","75859","758590","758598","7586","75860","758600","75861","758610","758611","758612","758614","758631","758633","758634","75864","758641","758688","75869","758691","758699","75870","758700","758712","758714","758715","75872","758722","75879","758790","75880","758800","75881","758810","758861","758862","758868","75888","758884","758888","75889","758890","75890","758900","75891","758910","75892","75893","758930","75898","758980","75899","758990","7590","75900","759000","759001","759002","75902","759020","759040","759041","759042","759050","759080","759090","75910","759100","759102","75911","759110","75913","759130","75918","759180","75920","759200","759203","759204","759210","759211","759212","759218","759219","75922","759220","759221","759222","759230","759231","759240","759241","759242","759248","759249","7593","75930","759300","759301","75932","75933","759330","75934","75938","759380","759390","759420","75944","759440","75948","759480","759481","75949","7595","759500","759501","759612","75968","759700","759788","7598","75980","759800","759801","759806","759807","759808","759811","759817","759818","75982","759820","759821","759832","75984","759840","759841","759842","759843","759844","759846","759847","759848","75986","759860","759861","759864","759865","759866","759867","759869","75987","759870","759872","759873","759874","759875","759877","759881","759882","759884","75989","759890","759894","759895","759898","759899","7599","759900","759910","759989","75999","759990","7600","7601","7602","7605","7606","7607","760703","760708","760711","760761","760780","760801","760888","761201","76121","7613","762100","762300","762301","762303","762520","76260","762600","762680","76280","762800","762801","76289","7629","7638","764","7640","7649","764900","76499","7660","7661","766100","766102","7662","76760","767700","7682","7683","7684","769000","7705","770790","771000","771011","77110","771100","771211","77128","772620","773000","7732","773200","774110","7753","775410","775440","7761","776120","777180","7780","77801","778010","77802","778020","77803","778030","77804","77808","778500","7786","778600","779200","77982","779820","77983","779830","779840","7799","7800","7802","7804","7805","78051","78052","7806","7807","7809","7810","7813","78130","781980","7821","7823","782300","7830","7832","7833","7834","783410","78343","783490","784","7840","7842","7844","7847","785","7850","785001","7851","785200","785290","7856","7860","78609","7862","7863","7865","787","7870","7871","7872","787200","7879","7880","7882","7883","789","7890","7891","789100","7892","789200","789890","790","7910","7915","792","792000","7942","797000","798","798000","799","807","829","8290","830","842840","847","8470","8489","85","8509","8519","8680","8798","888","8888","888888","8974","9","9080","9180","9193","9194","9195","9263","9269","9440","9492","9553","9599","971","9778","9804","9894","99","990","993","9950","9952","9953","99581","99632","999","9996","9997","9999","99999","999999","A00","A020","A071","A081","A0811","A084","A09","A16","A37","A379","A46","A490","A491","A499","A56","A59","A63","A630","A692","A749","A879","A928","B00","B001","B009","B01","B019","B02","B07","B082","B083","B084","B16","B18","B19","B25","B259","B27","B343","B35","B353","B354","B359","B37","B379","B49","B53","B58","B589","B76","B89","B951","B955","C65","C719","C723","C749","C81","C959","D093","D136","D179","D18","D180","D1800","D181","D1810","D215","D219","D22","D251","D259","D325","D331","D352","D361","D45","D461","D470","D487","D509","D51","D510","D519","D55","D550","D552","D560","D561","D569","D57","D570","D571","D580","D582","D610","D66","D660","D67","D68","D680","D682","D684","D685","D688","D69","D693","D694","D695","D696","D730","D78","D801","D819","D821","D86","D869","D961","E031","E038","E039","E05","E050","E059","E063","E071","E079","E10","E11","E14","E15","E161","E162","E20","E200","E201","E210","E221","E23","E230","E232","E237","E25","E250","E270","E271","E2727","E279","E282","E343","E344","E345","E538","E55","E615","E66","E669","E700","E702","E703","E711","E713","E720","E721","E722","E723","E725","E728","E729","E739","E74","E740","E742","E744","E748","E749","E750","E752","E754","E762","E771","E778","E78","E788","E800","E804","E819","E830","E835","E84","E848","E849","E850","E86","E860","E880","E882","E888","F079","F143","F203","F319","F32","F33","F349","F381","F39","F40","F400","F41","F410","F419","F42","F43","F430","F431","F449","F45","F453","F500","F5000","F603","F69","F711","F79","F84","F840","F89","F90","F900","F909","F984","F988","G11","G114","G118","G12","G120","G121","G129","G24","G253","G255","G258","G318","G35","G40","G402","G403","G404","G408","G409","G41","G43","G437","G438","G439","G47","G473","G479","G500","G51","G510","G54","G560","G600","G700","G710","G711","G712","G713","G729","G80","G800","G801","G808","G811","G819","G82","G822","G824","G902","G91","G912","G930","G933","G934","G950","G969","H052","H054","H10","H109","H162","H209","H269","H280","H308","H309","H312","H332","H353","H355","H40","H409","H47","H50","H500","H508","H509","H520","H521","H535","H538","H54","H540","H541","H547","H55","H58","H59","H669","H6692","H81","H810","H811","H90","H900","H901","H903","H904","H905","H9050","H906","H919","H93","I00","I10","I127","I15","I235","I251","I26","I27","I313","I340","I42","I420","I421","I422","I424","I428","I429","I431","I44","I451","I456","I458","I4581","I459","I47","I471","I489","I49","I490","I495","I499","I517","I719","I730","I773","I780","I802","I83","I84","I871","I890","I898","I959","J00","J019","J02","J029","J03","J040","J069","J09","J11","J189","J20","J301","J303","J304","J308","J3089","J310","J32","J33","J380","J42","J44","J45","J459","J45901","J46","J549","J56","J849","J939","J948","J987","J9880","J989","J991","K000","K001","K005","K006","K029","K04","K040","K049","K050","K052","K068","K07","K070","K071","K102","K120","K122","K13","K21","K290","K299","K30","K319","K35","K40","K400","K402","K403","K409","K42","K429","K449","K45","K49","K50","K509","K51","K522","K529","K56","K563","K58","K589","K59","K590","K603","K7","K710","K729","K740","K743","K754","K76","K80","K83","K830","K831","K868","K87","K900","L01","L022","L029","L059","L088","L089","L10","L20","L209","L229","L232","L235","L25","L259","L280","L292","L299","L30","L309","L40","L400","L42","L50","L508","L509","L52","L563","L564","L639","L659","L708","L71","L719","L720","L732","L738","L749","L77","L80","L813","L84","L853","L905","L908","L93","L989","M0082","M06","M069","M08","M080","M10","M109","M13","M130","M15","M199","M245","M255","M2551","M313","M32","M331","M349","M35","M352","M357","M41","M410","M419","M420","M43","M436","M45","M469","M4690","M478","M519","M533","M5382","M54","M542","M543","M545","M549","M706","M752","M755","M771","M79","M791","M792","M796","M797","M81","M8881","M890","M899","M9080","M90801","M911","M9500","N01","N011","N01B","N039","N04","N10","N12","N133","N189","N200","N251","N2889","N298","N301","N369","N390","N44","N47","N61","N760","N80","N809","N81","N813","N832","N8320","N898","N909","N944","N981","O001","O009","O039","O109","O120","O121","O13","O14","O142","O1423","O149","O16","O168","O169","O209","O21","O210","O211","O212","O220","O223","O224","O231","O234","O24","O244","O2441","O24410","O24414","O264","O265","O266","O268","O26833","O269","O311","O3120","O337","O343","O348","O349","O365","O40","O41","O410","O411","O42","O420","O421","O42112","O42113","O422","O430","O4302","O439","O44","O469","O4692","O4693","O479","O60","O600","O6002","O601","O88","O91","O9921","O993","O9932","O998","P011","P023","P049","P05","P059","P071","P080","P21","P210","P219","P271","P293","P350","P351","P358","P371","P378","P701","P77","P788","P832","P835","P916","P929","P942","P949","P968","Q00","Q000","Q0000","Q0001","Q001","Q002","Q0020","Q0021","Q01","Q010","Q011","Q012","Q018","Q0180","Q0181","Q0182","Q0183","Q019","Q02","Q020","Q03","Q030","Q031","Q038","Q0380","Q039","Q04","Q040","Q0400","Q041","Q042","Q043","Q0430","Q0431","Q0432","Q0433","Q0434","Q0435","Q044","Q045","Q046","Q0460","Q0461","Q0471","Q048","Q0482","Q0483","Q049","Q05","Q050","Q051","Q0511","Q0519","Q052","Q0521","Q0529","Q053","Q0531","Q054","Q055","Q056","Q0561","Q0562","Q057","Q0571","Q0572","Q058","Q0581","Q0582","Q059","Q0591","Q06","Q060","Q061","Q062","Q063","Q064","Q068","Q069","Q07","Q070","Q078","Q0780","Q0781","Q0782","Q079","Q10","Q10.3","Q100","Q101","Q102","Q103","Q1032","Q1033","Q1038","Q104","Q105","Q106","Q107","Q11","Q110","Q111","Q112","Q113","Q12","Q120","Q121","Q122","Q123","Q124","Q128","Q1280","Q129","Q13","Q130","Q131","Q132","Q133","Q134","Q135","Q138","Q139","Q14","Q140","Q141","Q1410","Q142","Q143","Q148","Q149","Q15","Q150","Q1500","Q158","Q159","Q16","Q160","Q161","Q162","Q163","Q164","Q165","Q169","Q17","Q170","Q171","Q172","Q173","Q174","Q175","Q178","Q179","Q18","Q180","Q1804","Q181","Q182","Q183","Q184","Q185","Q186","Q187","Q188","Q1880","Q189","Q2","Q20","Q200","Q2009","Q201","Q2013","Q202","Q203","Q204","Q205","Q206","Q208","Q209","Q21","Q210","Q2103","Q2104","Q2109","Q211","Q2110","Q2111","Q2112","Q2113","Q2114","Q2115","Q2118","Q2119","Q212","Q2120","Q2121","Q2128","Q2129","Q213","Q214","Q218","Q2180","Q2181","Q2182","Q219","Q22","Q220","Q2201","Q2202","Q221","Q222","Q223","Q2238","Q224","Q225","Q226","Q228","Q229","Q23","Q230","Q2302","Q231","Q2310","Q232","Q233","Q234","Q2345","Q238","Q239","Q24","Q24.9","Q240","Q241","Q242","Q243","Q244","Q245","Q246","Q248","Q2480","Q249","Q25","Q250","Q251","Q2510","Q2511","Q2519","Q252","Q253","Q254","Q2540","Q2541","Q2542","Q2543","Q2544","Q2545","Q2548","Q255","Q256","Q257","Q2570","Q2571","Q2572","Q258","Q2580","Q2581","Q259","Q26","Q260","Q2600","Q2601","Q261","Q262","Q2620","Q2621","Q263","Q264","Q265","Q266","Q268","Q269","Q27","Q270","Q271","Q272","Q273","Q274","Q278","Q2780","Q279","Q28","Q280","Q281","Q282","Q283","Q284","Q288","Q289","Q29","Q30","Q300","Q301","Q302","Q303","Q308","Q309","Q31","Q310","Q311","Q312","Q313","Q314","Q3140","Q3148","Q315","Q318","Q3180","Q319","Q32","Q320","Q321","Q3210","Q3211","Q322","Q3220","Q3221","Q323","Q324","Q3240","Q3241","Q3242","Q3243","Q33","Q330","Q3300","Q3301","Q3302","Q331","Q3310","Q332","Q333","Q334","Q335","Q336","Q338","Q3380","Q3381","Q339","Q34","Q340","Q341","Q348","Q3480","Q349","Q35","Q350","Q351","Q3519","Q353","Q3539","Q355","Q3550","Q3559","Q356","Q357","Q359","Q3590","Q3599","Q36","Q360","Q361","Q369","Q3690","Q3699","Q37","Q370","Q371","Q3710","Q3711","Q3713","Q3714","Q372","Q373","Q374","Q3748","Q375","Q3750","Q3759","Q378","Q379","Q3790","Q3799","Q38","Q380","Q3800","Q3808","Q381","Q382","Q383","Q3830","Q3839","Q384","Q385","Q3850","Q3858","Q386","Q387","Q388","Q3880","Q39","Q390","Q391","Q3910","Q3911","Q392","Q3920","Q393","Q394","Q395","Q3950","Q396","Q398","Q3980","Q3981","Q399","Q40","Q400","Q401","Q402","Q4021","Q4022","Q403","Q408","Q409","Q41","Q410","Q411","Q412","Q418","Q419","Q42","Q420","Q4200","Q4201","Q4203","Q4204","Q4209","Q421","Q422","Q4220","Q4221","Q4228","Q423","Q428","Q429","Q4290","Q43","Q430","Q4300","Q4301","Q4302","Q431","Q4310","Q4311","Q4312","Q4313","Q432","Q4320","Q433","Q4330","Q4331","Q4338","Q434","Q435","Q436","Q437","Q438","Q4380","Q4381","Q4382","Q4383","Q439","Q44","Q440","Q441","Q442","Q4420","Q4421","Q443","Q4430","Q444","Q445","Q446","Q447","Q4470","Q4471","Q4472","Q4473","Q4474","Q4475","Q45","Q450","Q451","Q452","Q453","Q4530","Q458","Q4580","Q4581","Q4582","Q4583","Q459","Q490","Q50","Q500","Q5000","Q5001","Q501","Q5010","Q5011","Q502","Q503","Q5030","Q504","Q505","Q506","Q5060","Q51","Q510","Q511","Q512","Q513","Q514","Q515","Q516","Q517","Q518","Q519","Q52","Q520","Q521","Q522","Q523","Q524","Q5240","Q525","Q526","Q527","Q528","Q5280","Q5281","Q529","Q53","Q530","Q531","Q5310","Q532","Q539","Q54","Q540","Q541","Q542","Q543","Q544","Q548","Q549","Q55","Q550","Q5500","Q5501","Q551","Q552","Q5520","Q5521","Q553","Q554","Q5540","Q555","Q556","Q558","Q559","Q56","Q560","Q561","Q562","Q563","Q564","Q60","Q600","Q601","Q602","Q603","Q604","Q605","Q606","Q61","Q610","Q611","Q612","Q613","Q614","Q6140","Q6141","Q6148","Q615","Q6150","Q6151","Q6152","Q618","Q619","Q6190","Q62","Q620","Q621","Q6210","Q6211","Q6212","Q6213","Q6218","Q622","Q623","Q6230","Q6231","Q6232","Q6233","Q624","Q625","Q6250","Q6251","Q626","Q6260","Q6261","Q6265","Q6268","Q627","Q6270","Q6271","Q628","Q63","Q630","Q6300","Q631","Q6310","Q6318","Q6319","Q632","Q6320","Q6321","Q6322","Q6328","Q6329","Q633","Q638","Q6381","Q639","Q64","Q640","Q641","Q6410","Q642","Q6420","Q6421","Q6429","Q643","Q6430","Q6431","Q6432","Q6433","Q644","Q6440","Q6441","Q6442","Q6448","Q645","Q646","Q647","Q6470","Q6471","Q6472","Q6473","Q6474","Q6475","Q6476","Q6478","Q648","Q649","Q65","Q650","Q651","Q652","Q653","Q654","Q655","Q656","Q6560","Q6561","Q658","Q658_0","Q6580","Q6581","Q6582","Q6583","Q6584","Q659","Q66","Q66.9","Q660","Q661","Q662","Q663","Q664","Q665","Q666","Q667","Q668","Q6680","Q6681","Q669","Q67","Q670","Q671","Q672","Q673","Q674","Q6740","Q6741","Q6742","Q675","Q6750","Q6752","Q6758","Q6759","Q676","Q677","Q678","Q68","Q680","Q681","Q6810","Q682","Q6820","Q6821","Q6828","Q683","Q684","Q685","Q6850","Q688","Q6880","Q69","Q690","Q690_2","Q6900","Q6901","Q6902","Q6909","Q691","Q6910","Q692","Q6920","Q6921","Q6922","Q6929","Q699","Q70","Q700","Q701","Q702","Q703","Q704","Q708","Q709","Q7090","Q71","Q710","Q711","Q712","Q713","Q7130","Q7131","Q714","Q715","Q716","Q718","Q7180","Q719","Q72","Q720","Q721","Q722","Q723","Q7230","Q7231","Q7239","Q724","Q725","Q726","Q727","Q728","Q729","Q73","Q730","Q731","Q738","Q7380","Q7388","Q74","Q740","Q7400","Q7401","Q7402","Q7403","Q7404","Q7405","Q7406","Q7407","Q7408","Q7409","Q741","Q742","Q7420","Q7421","Q7422","Q7423","Q743","Q748","Q7480","Q7481","Q7482","Q7483","Q7484","Q749","Q75","Q750","Q7500","Q7501","Q7502","Q7503","Q751","Q752","Q753","Q7530","Q754","Q755","Q758","Q7580","Q7581","Q759","Q76","Q760","Q761","Q762","Q763","Q7630","Q7638","Q7639","Q764","Q7640","Q7641","Q7642","Q7643","Q7648","Q7649","Q765","Q766","Q7660","Q7661","Q7662","Q767","Q7670","Q7671","Q7678","Q768","Q769","Q77","Q770","Q7700","Q7701","Q7702","Q771","Q772","Q773","Q774","Q775","Q776","Q777","Q778","Q7780","Q7781","Q779","Q78","Q780","Q7800","Q7808","Q781","Q782","Q783","Q784","Q7840","Q7848","Q785","Q786","Q788","Q7880","Q789","Q79","Q790","Q7900","Q7901","Q791","Q7910","Q7911","Q7912","Q792","Q793","Q794","Q795","Q796","Q798","Q7980","Q7981","Q7982","Q799","Q80","Q800","Q801","Q802","Q803","Q804","Q808","Q809","Q81","Q810","Q811","Q812","Q818","Q819","Q82","Q820","Q821","Q822","Q823","Q824","Q825","Q8250","Q8251","Q8252","Q8258","Q828","Q8280","Q8281","Q8282","Q8283","Q829","Q83","Q830","Q831","Q832","Q833","Q838","Q839","Q84","Q840","Q841","Q842","Q8420","Q843","Q844","Q845","Q846","Q848","Q8480","Q8480Q","Q849","Q85","Q850","Q851","Q858","Q8580","Q8581","Q8582","Q8583","Q859","Q86","Q860","Q861","Q862","Q868","Q8680","Q8681","Q8682","Q8683","Q8684","Q8685","Q87","Q870","Q8700","Q8701","Q8702","Q8703","Q8704","Q8705","Q8706","Q8707","Q8708","Q8709","Q870A","Q870B","Q870C","Q870D","Q870E","Q870F","Q871","Q8710","Q8711","Q8712","Q8713","Q8714","Q8715","Q8716","Q8717","Q8718","Q8719","Q871A","Q871B","Q872","Q8720","Q8721","Q8722","Q8723","Q8724","Q8725","Q8726","Q8728","Q873","Q8730","Q8731","Q8732","Q8738","Q874","Q875","Q878","Q8780","Q8781","Q8783","Q8784","Q8785","Q89","Q890","Q8900","Q8908","Q891","Q8910","Q8911","Q8918","Q892","Q8920","Q8921","Q8922","Q8923","Q8924","Q8925","Q893","Q8930","Q8931","Q8932","Q8933","Q8934","Q8938","Q894","Q8940","Q8941","Q8942","Q8943","Q8944","Q8945","Q8948","Q897","Q898","Q8980","Q899","Q90","Q900","Q901","Q902","Q908","Q909","Q91","Q910","Q911","Q912","Q913","Q914","Q915","Q916","Q917","Q92","Q920","Q921","Q922","Q923","Q924","Q925","Q926","Q927","Q928","Q929","Q93","Q930","Q931","Q932","Q933","Q934","Q935","Q9350","Q936","Q937","Q938","Q939","Q95","Q950","Q951","Q952","Q953","Q954","Q955","Q958","Q959","Q96","Q960","Q961","Q962","Q963","Q964","Q968","Q969","Q97","Q970","Q971","Q972","Q973","Q978","Q979","Q98","Q980","Q981","Q982","Q9824","Q983","Q984","Q985","Q986","Q987","Q988","Q989","Q99","Q990","Q991","Q992","Q998","Q999","Q9999","Q99999","R00","R000","R01","R011","R05","R060","R0602","R067","R068","R073","R102","R104","R109","R11","R12","R18","R197","R238","R252","R32","R33","R35","R42","R43","R45","R457","R50","R509","R51","R52","R529","R53","R55","R560","R600","R628","R65","R739","R79","S","S098","S099","S0990","S134","S20","S82","S913","S932","T009","T140","T141","T146","T58","T639","T784","U071","V0259","V031","V037","V130","V499","V725","V728","V741","W19","W54","W55","W57","W774","W88","W90","X","X49","X59","Y48","Y58","Y584","Z21","Z321","Z332","Z637","Z73","Z730","Z733","Z910","Z94","Z9884"))

Possible Solution

Don't use such long lines?

Additional Information/Context

No response

Ace Version / Browser / OS / Keyboard layout

Kitchen Sink, latest Chrome on Windows

@kevinushey
Copy link
Contributor

I wonder if it would help to bump up the number of characters used when measuring the character width here?

var CHAR_COUNT = 512;

The issue also likely depends on the font size, since that seems to impact the precision of the computed character width. (I don't see an issue with a font size of 12px, but the issue is more apparent with a font size of 11px or 10px.)

@akoreman
Copy link
Contributor

Hey, thanks for raising this issue, we tried to fix what seems to be the same issue in #4996 but had to revert that in #5052 because it was causing other issues (#5012).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants