File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -979,7 +979,7 @@ module Settings = {
979
979
React .null
980
980
}}
981
981
<div className = "mt-6" >
982
- <div className = titleClass > {React .string ("Vim" )} </div >
982
+ <div className = titleClass > {React .string ("Use Vim Keymap " )} </div >
983
983
<ToggleSelection
984
984
values = [CodeMirror .KeyMap .Default , CodeMirror .KeyMap .Vim ]
985
985
toLabel = {enabled =>
@@ -1485,8 +1485,8 @@ let make = (~versions: array<string>) => {
1485
1485
let (keyMap , setKeyMap ) = React .useState (() => {
1486
1486
Dom .Storage2 .localStorage
1487
1487
-> Dom .Storage2 .getItem ("vimMode" )
1488
- -> Belt . Option .map (CodeMirror .KeyMap .fromString )
1489
- -> Belt . Option .getWithDefault (CodeMirror .KeyMap .Default )
1488
+ -> Option .map (CodeMirror .KeyMap .fromString )
1489
+ -> Option .getOr (CodeMirror .KeyMap .Default )
1490
1490
})
1491
1491
1492
1492
React .useEffect1 (() => {
You can’t perform that action at this time.
0 commit comments