Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/python-wasm
Path: blob/main/core/dash/src/patches/03-emacs-default.patch
1398 views
1
--- native/src/options.c 2022-10-01 09:10:53.000000000 -0700
2
+++ wasm/src/options.c 2022-10-16 15:01:39.000000000 -0700
3
@@ -169,6 +169,13 @@
4
shellparam.nparam++;
5
xargv++;
6
}
7
+ if(!Vflag && !Eflag) {
8
+ // Set emacs mode to be the default in case nothing specified.
9
+ // dash doesn't work at all interactively if neither emacs or
10
+ // vi mode are specified! Note that Eflag is "optlist[10]".
11
+ Eflag =1;
12
+ }
13
+
14
optschanged();
15
16
return login;
17
18