about summary refs log tree commit diff stats
path: root/src/buffer
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-06-09 14:35:54 +0200
committerbptato <nincsnevem662@gmail.com>2023-06-09 14:35:54 +0200
commitb39e35e46773258cb103397b2372612308c22ae0 (patch)
treea0d0db4e9759ba750b565f337f97bfee346cb5d9 /src/buffer
parent00d7836d8a3d0101bd282e3acce58d65ed0220fe (diff)
downloadchawan-b39e35e46773258cb103397b2372612308c22ae0.tar.gz
Fix 'F' missing from fullwidth chars + display bugs
Diffstat (limited to 'src/buffer')
-rw-r--r--src/buffer/cell.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buffer/cell.nim b/src/buffer/cell.nim
index 3d1d32fa..a147a420 100644
--- a/src/buffer/cell.nim
+++ b/src/buffer/cell.nim
@@ -62,6 +62,7 @@ proc `[]`*(grid: FixedGrid, i: BackwardsIndex): FixedCell = grid.cells[i]
 iterator items*(grid: FixedGrid): FixedCell {.inline.} =
   for cell in grid.cells: yield cell
 proc len*(grid: FixedGrid): int = grid.cells.len
+proc high*(grid: FixedGrid): int = grid.cells.high
 
 const FormatCodes*: array[FormatFlags, tuple[s: int, e: int]] = [
   FLAG_BOLD: (1, 22),