shell mode segfault patch
Federico Luna <[email protected]>
| Newsgroups | gmane.editors.qemacs.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, This patch solve a segfault that ocurre in certain cases when switch to a shell buffer. I simple add a call to text_mode_init() in the shell_mode_init() function in shell.c I don't know if this is necesary for shell mode, but work for me. It is correct? thanks federico luna (sorry my bad english) _______________________________________________ Qemacs-devel mailing list [email protected] http://mail.nongnu.org/mailman/listinfo/qemacs-devel
shell_segfault.patch
(application/octet-stream, 367 B)
--- qemacs-0.3.1/shell.c Mon Apr 21 19:01:43 2003
+++ qemacs-0.3.1_fedel/shell.c Thu Nov 27 10:41:19 2003
@@ -67,6 +67,10 @@
static int shell_mode_init(EditState *s, ModeSavedData *saved_data)
{
+ int ret;
+ ret = text_mode_init(s, saved_data);
+ if (ret)
+ return ret;
s->tab_size = 8;
s->wrap = WRAP_TRUNCATE;
s->interactive = 1;