about summary refs log tree commit diff stats
path: root/src/local/pager.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/local/pager.nim')
-rw-r--r--src/local/pager.nim5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim
index ac241d73..aa546082 100644
--- a/src/local/pager.nim
+++ b/src/local/pager.nim
@@ -260,7 +260,10 @@ proc newPager*(config: Config, attrs: WindowAttributes, forkserver: ForkServer,
   return pager
 
 proc launchPager*(pager: Pager, infile: File) =
-  pager.term.start(infile)
+  case pager.term.start(infile)
+  of tsrSuccess: discard
+  of tsrDA1Fail:
+    pager.alert("Failed to query DA1, please set display.query-da1 = false")
 
 func infile*(pager: Pager): File =
   return pager.term.infile