Skip to content

Commit 0666d2f

Browse files
committed
Add vi-option-raw-value.
1 parent 82d3f9c commit 0666d2f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

extensions/vi-mode/options.lisp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
:vi-option
2121
:vi-option-name
2222
:vi-option-value
23+
:vi-option-raw-value
2324
:vi-option-default
2425
:vi-option-type
2526
:vi-option-aliases
@@ -79,12 +80,15 @@
7980
(vi-option name-or-option)
8081
(string (get-option name-or-option error-if-not-exists))))
8182

83+
(defun vi-option-raw-value (option)
84+
(vi-option-%value (ensure-option option)))
85+
8286
(defun vi-option-value (option)
8387
(let ((option (ensure-option option)))
8488
(values
8589
(if-let (getter (vi-option-getter option))
8690
(funcall getter option)
87-
(vi-option-%value option))
91+
(vi-option-raw-value option))
8892
(vi-option-name option))))
8993

9094
(defun (setf vi-option-value) (new-value option)
@@ -320,7 +324,7 @@
320324
Default: @,48-57,_,192-255
321325
Aliases: isk")
322326
(:getter (option)
323-
(car (vi-option-%value option)))
327+
(car (vi-option-raw-value option)))
324328
(:setter (new-value option)
325329
(setf (vi-option-%value option)
326330
(cons new-value

0 commit comments

Comments
 (0)