MCPcopy 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

normalFunction · 0.85
inlineFunction · 0.85
directiveFunction · 0.85
verbatimFunction · 0.85
blockFunction · 0.85

Calls 1

setStateFunction · 0.70

Tested by

no test coverage detected