about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-11-25 00:32:54 +0100
committerbptato <nincsnevem662@gmail.com>2022-11-25 00:33:39 +0100
commitb086e346afeded51c94c9b77280dcea6f6b3ce8a (patch)
treee2fd9f29e77ab787f960bbd8ba190a14a6d5d7a0 /src/config
parent896489a6c500e28f13d0237ab691622cb5c5114f (diff)
downloadchawan-b086e346afeded51c94c9b77280dcea6f6b3ce8a.tar.gz
Buffer improvements
Diffstat (limited to 'src/config')
-rw-r--r--src/config/bufferconfig.nim7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/config/bufferconfig.nim b/src/config/bufferconfig.nim
index ee776363..6e8d19e6 100644
--- a/src/config/bufferconfig.nim
+++ b/src/config/bufferconfig.nim
@@ -1,9 +1,8 @@
 import config/config
 import css/sheet
 
-type BufferConfig* = ref object
-  userstyle*: CSSStylesheet
+type BufferConfig* = object
+  userstyle*: string
 
 proc loadBufferConfig*(config: Config): BufferConfig =
-  new(result)
-  result.userstyle = parseStylesheet(config.stylesheet)
+  result.userstyle = config.stylesheet