Skip to content
Browse files

Remove '!' in retab before attempting to parseInt.

  • Loading branch information...
1 parent 9880c47 commit b24910a2f9b0da5ab43cd6ddadd04416dc5c6d94 @keforbes keforbes committed
View
5 net.sourceforge.vrapper.core/src/net/sourceforge/vrapper/vim/commands/RetabOperation.java
@@ -77,8 +77,11 @@ public RetabOperation(String commandStr) {
return;
// Replaces equivalent number of spaces with tab if expandtab is not on
- if(commandStr.contains(REPLACE_NORMAL_SPACE))
+ if(commandStr.contains(REPLACE_NORMAL_SPACE)) {
replaceNormalSpace = true;
+ //remove '!' so it won't affect the parseInt below
+ commandStr = commandStr.replace(REPLACE_NORMAL_SPACE, "");
+ }
// New tab character
if(commandStr.length() > 0) {

0 comments on commit b24910a

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