about summary refs log tree commit diff stats
path: root/src/main.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-11-15 23:42:20 +0100
committerbptato <nincsnevem662@gmail.com>2022-11-19 14:32:54 +0100
commita6bbcd0dd3f77b0e98527c1fa9e510a40acd954e (patch)
treeca55cc9079afbe788a61986e42d1a8d9d0bc7c2f /src/main.nim
parente75f62b34f7c7f3127bcde0c4a12cbb785342dd9 (diff)
downloadchawan-a6bbcd0dd3f77b0e98527c1fa9e510a40acd954e.tar.gz
Rewrite buffer/pager for multi-processing
Diffstat (limited to 'src/main.nim')
-rw-r--r--src/main.nim7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.nim b/src/main.nim
index 817ec190..09eb3f6b 100644
--- a/src/main.nim
+++ b/src/main.nim
@@ -1,3 +1,4 @@
+import options
 import os
 import terminal
 
@@ -37,7 +38,7 @@ Options:
   quit(i)
 
 var i = 0
-var ctype = ""
+var ctype = none(string)
 var pages: seq[string]
 var dump = false
 var escape_all = false
@@ -54,7 +55,7 @@ while i < params.len:
   of "-T":
     inc i
     if i < params.len:
-      ctype = params[i]
+      ctype = some(params[i])
     else:
       help(1)
   of "-":
@@ -94,7 +95,7 @@ if pages.len == 0 and conf.startup == "":
   if stdin.isatty:
     help(1)
 
-conf.nmap = constructActionTable2(conf.nmap)
+conf.nmap = constructActionTable(conf.nmap)
 conf.lemap = constructActionTable(conf.lemap)
 
 width_table = makewidthtable(conf.ambiguous_double)