[READ-ONLY] Mirror of https://github.com/bombshell-dev/tty. Platform independent 2D layout engine for terminal applications based on Clay
5

Configure Feed

Select the types of activity you want to include in your feed.

deno fmt

Nate Moore (May 28, 2026, 2:45 AM EDT) 51fdc1ae a52ce4f9

+17 -8
+17 -8
tasks/gen-wcwidth.ts
··· 131 131 if (current.start <= previous.end + 1) { 132 132 throw new Error( 133 133 `${label}: adjacent ranges at index ${index}: ` + 134 - `[0x${previous.start.toString(16)}, 0x${previous.end.toString(16)}] ` + 135 - `and [0x${current.start.toString(16)}, 0x${current.end.toString(16)}]`, 134 + `[0x${previous.start.toString(16)}, 0x${ 135 + previous.end.toString(16) 136 + }] ` + 137 + `and [0x${current.start.toString(16)}, 0x${ 138 + current.end.toString(16) 139 + }]`, 136 140 ); 137 141 } 138 142 } ··· 240 244 for (const range of allRanges) { 241 245 if (range.start > 0x1fffff) { 242 246 throw new Error( 243 - `Range start 0x${range.start.toString(16)} exceeds 21 bits — packed encoding broken`, 247 + `Range start 0x${ 248 + range.start.toString(16) 249 + } exceeds 21 bits — packed encoding broken`, 244 250 ); 245 251 } 246 252 } ··· 253 259 const largeRanges = allRanges.filter((range) => range.count > 1023); 254 260 255 261 const smallPacked = smallRanges.map( 256 - (range) => (range.start << 11) | (range.count << 1) | (range.width === 2 ? 1 : 0), 262 + (range) => 263 + (range.start << 11) | (range.count << 1) | (range.width === 2 ? 1 : 0), 257 264 ); 258 265 259 266 for (let index = 1; index < smallPacked.length; index++) { ··· 277 284 const startBlock = range.start >> 7; 278 285 const endBlock = endCp >> 7; 279 286 for (let block = startBlock; block <= endBlock; block++) { 280 - bmpFilter[block >> 5] |= (1 << (block & 31)); 287 + bmpFilter[block >> 5] |= 1 << (block & 31); 281 288 } 282 289 } 283 290 let dirtyBlocks = 0; 284 291 for (const w of bmpFilter) { 285 292 let x = w; 286 - while (x) { x &= x - 1; dirtyBlocks++; } 293 + while (x) { 294 + x &= x - 1; 295 + dirtyBlocks++; 296 + } 287 297 } 288 298 289 - const tableBytes = 290 - 16 * 4 + // bmp_filter 299 + const tableBytes = 16 * 4 + // bmp_filter 291 300 smallPacked.length * 4 + 292 301 largeStarts.length * 4 + 293 302 largeCounts.length * 2 +