Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fix '*' and '#' when regexsearch is enabled.

  • Loading branch information...
1 parent f516e28 commit 2a1d2086faaf3dbc33255493cee2492ec1a7ea6d @keforbes keforbes committed
4 ...e.vrapper.core/src/net/sourceforge/vrapper/vim/modes/commandline/
@@ -47,7 +47,9 @@ public static Search createSearch(EditorAdaptor editor, String keyword, boolean
boolean caseSensitive = ! editor.getConfiguration().get(Options.IGNORE_CASE)
|| (editor.getConfiguration().get(Options.SMART_CASE)
&& StringUtils.containsUppercase(keyword));
- boolean useRegExp = editor.getConfiguration().get(Options.SEARCH_REGEX);
+ //can't mix wholeWord and regex search, Eclipse chokes
+ //(if we're searching for wholeWord it isn't a regex anyway)
+ boolean useRegExp = !wholeWord && editor.getConfiguration().get(Options.SEARCH_REGEX);
if (offset == null) {
// Sanity checking. Passing null is bad style though.
offset = SearchOffset.NONE;

0 comments on commit 2a1d208

Please sign in to comment.
Something went wrong with that request. Please try again.