subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From julianf...@apache.org
Subject svn commit: r1672399 - /subversion/branches/move-tracking-2/subversion/libsvn_subr/prompt.c
Date Thu, 09 Apr 2015 15:32:50 GMT
Author: julianfoad
Date: Thu Apr  9 15:32:50 2015
New Revision: 1672399

URL: http://svn.apache.org/r1672399
Log:
On the 'move-tracking-2' branch: Re-enable line editing and history
after accidentally disabling it in r1672358.

* subversion/libsvn_subr/prompt.c
  (HAVE_LINENOISE): Define.
  (svn_cmdline_prompt_user2): Store history when command is *non*-empty.

Modified:
    subversion/branches/move-tracking-2/subversion/libsvn_subr/prompt.c

Modified: subversion/branches/move-tracking-2/subversion/libsvn_subr/prompt.c
URL: http://svn.apache.org/viewvc/subversion/branches/move-tracking-2/subversion/libsvn_subr/prompt.c?rev=1672399&r1=1672398&r2=1672399&view=diff
==============================================================================
--- subversion/branches/move-tracking-2/subversion/libsvn_subr/prompt.c (original)
+++ subversion/branches/move-tracking-2/subversion/libsvn_subr/prompt.c Thu Apr  9 15:32:50
2015
@@ -48,7 +48,7 @@
 #include <termios.h>
 #endif
 
-#undef HAVE_LINENOISE
+#define HAVE_LINENOISE
 #ifdef HAVE_LINENOISE
 #include "linenoise/linenoise.c"
 #endif
@@ -939,7 +939,7 @@ svn_cmdline_prompt_user2(const char **re
       return svn_error_create(SVN_ERR_CANCELLED, NULL, NULL);
     }
   /* add the line to the recallable history (if non-empty) */
-  if (! (input && *input))
+  if (input && *input)
     {
       linenoiseHistoryAdd(input);
     }



Mime
View raw message