Re: [PATCH] space on prompt bugfix
Hello Andy, Oswald, On Wed, 2005-05-25 at 18:13 +0200, Oswald Buddenhagen wrote: On Wed, May 25, 2005 at 06:31:15PM +0300, Andy Shevchenko wrote: - why do you not drop tabspaces? hmm, indeed, if i go into troubles to press ctrl-q tab, the same issue comes up. I'm attaching the new patch to ignore the tab occurences in the command prompt as well. Pressing Ctrl-q tab isn't a daily practise for a common mc user, but it makes the patch more complete anyway, thanks. Cheers, Jindrich -- Jindrich Novy [EMAIL PROTECTED], http://people.redhat.com/jnovy/ The worst evil in the world is refusal to think. --- mc-4.6.1a/src/main.c.spaceprompt 2005-05-26 15:06:42.285109424 +0200 +++ mc-4.6.1a/src/main.c 2005-05-26 15:15:15.964018360 +0200 @@ -1490,9 +1491,15 @@ midnight_callback (struct Dlg_head *h, d if (parm == '\t') free_completions (cmdline); - if (parm == '\n' cmdline-buffer[0]) { - send_message ((Widget *) cmdline, WIDGET_KEY, parm); - return MSG_HANDLED; + if (parm == '\n') { + for (i = 0; cmdline-buffer[i] + (cmdline-buffer[i] == ' ' || cmdline-buffer[i] == '\t'); i++); + if (cmdline-buffer[i]) { + send_message ((Widget *) cmdline, WIDGET_KEY, parm); + return MSG_HANDLED; + } + stuff (cmdline, , 0); + cmdline-point = 0; } /* Ctrl-Enter and Alt-Enter */ @@ -1527,7 +1534,7 @@ midnight_callback (struct Dlg_head *h, d reverse_selection_cmd (); return MSG_HANDLED; } - } else if (!command_prompt || !strlen (cmdline-buffer)) { + } else if (!command_prompt || !cmdline-buffer[0]) { /* Special treatement '+', '-', '\', '*' only when this is * first char on input line */ ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
Re: [PATCH] space on prompt bugfix
On Wed, Jun 01, 2005 at 11:10:16AM +0200, Jindrich Novy wrote: I'm attaching the new patch given that the other patch was finally applied, an incremental patch would be more helpful. anyway, i think the change can be commited without further comment ... -- Hi! I'm a .signature virus! Copy me into your ~/.signature, please! -- Chaos, panic, and disorder - my work here is done. ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
Re: [PATCH] space on prompt bugfix
On Wed, 2005-06-01 at 13:32 +0200, Oswald Buddenhagen wrote: On Wed, Jun 01, 2005 at 11:10:16AM +0200, Jindrich Novy wrote: I'm attaching the new patch given that the other patch was finally applied, an incremental patch would be more helpful. I haven't noticed any post confirming the commitment, so I assumed it's not committed yet. anyway, i think the change can be commited without further comment ... Agreed. -- Jindrich Novy [EMAIL PROTECTED], http://people.redhat.com/jnovy/ The worst evil in the world is refusal to think. ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel
Re: portability of mc
On Wednesday, May 18, 2005 at 07:36, Roland Illig wrote: Do we want mc to be able to run on platforms that have: - 16 bit ints - 16 bit size_t - other weird system limits? This would affect all arithmetic operations that could lead to numbers bigger than 32k in magnitude. What's the problem with using uint32_t etc in all code that would be affected by this problem? The answer to the question do you want to support a system that does not support 32-bit integers is much more obvious. Regards, Oskar Liljeblad ([EMAIL PROTECTED]) ___ Mc-devel mailing list http://mail.gnome.org/mailman/listinfo/mc-devel