Hi list.

When do :grep, we need to type ENTER always. But in most of cases, it doesn't 
display anything. How about this patch?

diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 6535de1..812a119 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -1446,6 +1446,7 @@ do_shell(
 #ifdef MSWIN
     int                winstart = FALSE;
 #endif
+    int                retval;
 
     /*
      * Disallow shell commands for "rvim".
@@ -1517,7 +1518,7 @@ do_shell(
     if (!swapping_screen())
        windgoto(msg_row, msg_col);
     cursor_on();
-    (void)call_shell(cmd, SHELL_COOKED | flags);
+    retval = call_shell(cmd, SHELL_COOKED | flags);
     did_check_timestamps = FALSE;
     need_check_timestamps = TRUE;
 
@@ -1557,7 +1558,7 @@ do_shell(
                redraw_later_clear();
            need_wait_return = FALSE;
        }
-       else
+       else if ((flags & SHELL_DOOUT) != 0 && retval != 0)
        {
            /*
             * If we switch screens when starttermcap() is called, we really

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui