Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH 4/6] zle_main: mark statusline as const



The statusline points to a const string which content isn't editable.
---
 Src/Zle/zle_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index 1afb1bf58..de8a05191 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -154,7 +154,7 @@ mod_export Widget compwidget;
 /* the status line, a null-terminated metafied string */
 
 /**/
-mod_export char *statusline;
+mod_export const char *statusline;
 
 /* The current history line and cursor position for the top line *
  * on the buffer stack.                                          */
-- 
2.43.0





Messages sorted by: Reverse Date, Date, Thread, Author