diff options
author | bptato <nincsnevem662@gmail.com> | 2023-09-23 12:04:50 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-09-23 13:16:33 +0200 |
commit | 264bedd6ccc61ed1a87ae599777668937a231f09 (patch) | |
tree | 84f96bc7b59aae00df7051fcffbcc76d051d70b1 /src/local/container.nim | |
parent | d7c2c30c924c051c36dd30290f4853e960325886 (diff) | |
download | chawan-264bedd6ccc61ed1a87ae599777668937a231f09.tar.gz |
container: un-extern, un-ref highlights
No need for either of that now.
Diffstat (limited to 'src/local/container.nim')
-rw-r--r-- | src/local/container.nim | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/local/container.nim b/src/local/container.nim index 8b961e03..37a78faf 100644 --- a/src/local/container.nim +++ b/src/local/container.nim @@ -59,11 +59,11 @@ type force*: bool else: discard - Highlight* = ref object - x*, y*: int - endy*, endx*: int - rect*: bool - clear*: bool + Highlight = object + x, y: int + endy, endx: int + rect: bool + clear: bool Container* = ref object parent* {.jsget.}: Container @@ -152,6 +152,7 @@ proc clone*(container: Container, newurl: URL): Promise[Container] = source: container.source, pos: container.pos, bpos: container.bpos, + highlights: container.highlights, process: pid, loadinfo: container.loadinfo, lines: container.lines, @@ -171,10 +172,6 @@ proc clone*(container: Container, newurl: URL): Promise[Container] = canreinterpret: container.canreinterpret, cloned: true ) - for hl in container.highlights: - var hl0 = Highlight() - hl0[] = hl[] - ncontainer.highlights.add(hl0) if newurl != nil: ncontainer.source.location = newurl return ncontainer |