Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nwutils/nw-sample-apps
/ setNormal
Function
setNormal
mini-code-edit/cm/mode/rst/rst.js:11–18 ·
view source on GitHub ↗
(state, ch)
Source
from the content-addressed store, hash-verified
9
}
10
11
function
setNormal(state, ch) {
12
if
(ch && (typeof ch !==
'string'
)) {
13
var
str = ch.current();
14
ch = str[str.length-1];
15
}
16
17
setState(state, normal, {back: ch});
18
}
19
20
function
hasMode(mode) {
21
if
(mode) {
Callers
5
normal
Function · 0.85
inline
Function · 0.85
directive
Function · 0.85
verbatim
Function · 0.85
block
Function · 0.85
Calls
1
setState
Function · 0.70
Tested by
no test coverage detected