Skip to content

Instantly share code, notes, and snippets.

@ryochin
Created November 4, 2013 11:20
Show Gist options
  • Save ryochin/7301202 to your computer and use it in GitHub Desktop.
Save ryochin/7301202 to your computer and use it in GitHub Desktop.
homebrew: lv patch for --less-like-slash option.
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