summaryrefslogtreecommitdiffstats
path: root/Src/init.c
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2025-10-31 09:33:27 +0100
committerOliver Kiddle <opk@zsh.org>2025-10-31 09:33:27 +0100
commit6ac61e9a8f6392c1c625f9b46c834e87a357b8d4 (patch)
treeefb3847402d8a449ce83363f697cdefda3f7d437 /Src/init.c
parentDan Drake: 53803: make adam1 prompt wrap len and ellipsized path configurable (diff)
downloadzsh-6ac61e9a8f6392c1c625f9b46c834e87a357b8d4.tar
zsh-6ac61e9a8f6392c1c625f9b46c834e87a357b8d4.tar.gz
zsh-6ac61e9a8f6392c1c625f9b46c834e87a357b8d4.tar.bz2
zsh-6ac61e9a8f6392c1c625f9b46c834e87a357b8d4.tar.lz
zsh-6ac61e9a8f6392c1c625f9b46c834e87a357b8d4.tar.xz
zsh-6ac61e9a8f6392c1c625f9b46c834e87a357b8d4.tar.zst
zsh-6ac61e9a8f6392c1c625f9b46c834e87a357b8d4.zip
54007: remove some uses of mod_export that were likely unintended
Diffstat (limited to 'Src/init.c')
-rw-r--r--Src/init.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/Src/init.c b/Src/init.c
index 76de0b449..dfef860f7 100644
--- a/Src/init.c
+++ b/Src/init.c
@@ -84,7 +84,9 @@ mod_export int tclen[TC_COUNT];
/**/
int tclines, tccolumns;
/**/
-mod_export int hasam, hasbw, hasxn, hasye;
+mod_export int hasam;
+/**/
+int hasxn;
/* Value of the Co (max_colors) entry: may not be set */
@@ -97,7 +99,7 @@ mod_export int tccolours;
mod_export sigset_t sigchld_mask;
/**/
-mod_export struct hookdef zshhooks[] = {
+struct hookdef zshhooks[] = {
HOOKDEF("exit", NULL, HOOKF_ALL),
HOOKDEF("before_trap", NULL, HOOKF_ALL),
HOOKDEF("after_trap", NULL, HOOKF_ALL),
@@ -815,9 +817,7 @@ init_term(void)
/* check whether terminal has automargin (wraparound) capability */
hasam = tgetflag("am");
- hasbw = tgetflag("bw");
hasxn = tgetflag("xn"); /* also check for newline wraparound glitch */
- hasye = tgetflag("YE"); /* print in last column does carriage return */
tclines = tgetnum("li");
tccolumns = tgetnum("co");
@@ -870,6 +870,8 @@ init_term(void)
rprompt_indent = 1; /* If you change this, update rprompt_indent_unsetfn() */
/* The following is an attempt at a heuristic,
* but it fails in some cases */
+ /* int hasbw = tgetflag("bw"); */
+ /* int hasye = tgetflag("YE"); */ /* print in last column does carriage return */
/* rprompt_indent = ((hasam && !hasbw) || hasye || !tccan(TCLEFT)); */
/* if there's no termcap entry for italics, use CSI 3 m */