diff options
Diffstat (limited to 'src/local')
-rw-r--r-- | src/local/client.nim | 2 | ||||
-rw-r--r-- | src/local/pager.nim | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/local/client.nim b/src/local/client.nim index b707fe84..df8491fb 100644 --- a/src/local/client.nim +++ b/src/local/client.nim @@ -460,7 +460,7 @@ proc acceptBuffers(client: Client) = let pager = client.pager while pager.unreg.len > 0: let (pid, stream) = pager.unreg.pop() - let fd = int(stream.fd) + let fd = int(stream.source.fd) if fd in client.fdmap: client.selector.unregister(fd) client.fdmap.del(fd) diff --git a/src/local/pager.nim b/src/local/pager.nim index 24f1ad0f..6877133b 100644 --- a/src/local/pager.nim +++ b/src/local/pager.nim @@ -21,6 +21,7 @@ import extern/editor import extern/runproc import extern/stdio import extern/tempfile +import io/bufstream import io/posixstream import io/promise import io/socketstream @@ -105,7 +106,7 @@ type statusgrid*: FixedGrid term*: Terminal tmpdir*: string - unreg*: seq[tuple[pid: int; stream: PosixStream]] + unreg*: seq[tuple[pid: int; stream: BufStream]] urimethodmap: URIMethodMap username: string |