diff options
-rw-r--r-- | src/display/pager.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/display/pager.nim b/src/display/pager.nim index fde58c92..ad89d0d4 100644 --- a/src/display/pager.nim +++ b/src/display/pager.nim @@ -93,7 +93,8 @@ iterator containers*(pager: Pager): Container {.inline.} = proc setContainer*(pager: Pager, c: Container) {.jsfunc.} = pager.container = c pager.redraw = true - pager.term.setTitle(c.getTitle()) + if c != nil: + pager.term.setTitle(c.getTitle()) proc hasprop(pager: Pager, s: string): bool {.jshasprop.} = if pager.container != nil: |