Permalink
Browse files

Remove '!' in retab before attempting to parseInt.

  • Loading branch information...
keforbes committed Mar 12, 2013
1 parent 9880c47 commit b24910a2f9b0da5ab43cd6ddadd04416dc5c6d94
@@ -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.