Created
November 4, 2013 11:20
-
-
Save ryochin/7301202 to your computer and use it in GitHub Desktop.
homebrew: lv patch for --less-like-slash option.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/command.c b/src/command.c | |
index be32c95..2ca9ffa 100644 | |
--- a/src/command.c | |
+++ b/src/command.c | |
@@ -413,6 +413,14 @@ private byte *CommandFindSetPattern( file_t *f, boolean_t direction ) | |
ConsoleClearRight(); | |
istr = CommandGetLine( f, prompt ); | |
if( NULL == istr ){ | |
+#if 1 | |
+ if( NULL != f->find.pattern ){ | |
+ res = CommandFindContinue( f, direction ); | |
+ return res; | |
+ } else { | |
+ return NULL; | |
+ } | |
+#else | |
/* | |
* パターン有りから無し | |
*/ | |
@@ -426,6 +434,7 @@ private byte *CommandFindSetPattern( file_t *f, boolean_t direction ) | |
} | |
} | |
return NULL; | |
+#endif | |
} else { | |
/* | |
* パターンのセット |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment