Skip to content

Commit

Permalink
Fixed line numbers column showing a preppended 0 on first line.
Browse files Browse the repository at this point in the history
  • Loading branch information
rainner committed Jun 28, 2016
1 parent 6f52a98 commit 82734fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/syntaxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@
{
val = String( val || '' );
def = String( def || '' );
return "" + ( val || def );
return ( val || def );
},

/**
Expand All @@ -377,7 +377,7 @@
{
val = ( /^(\-|\+){0,1}[0-9\.]+$/.test( val ) ) ? val : 0;
def = ( /^(\-|\+){0,1}[0-9\.]+$/.test( def ) ) ? def : 0;
return 0 + ( val || def );
return ( val || def );
},

/**
Expand Down

0 comments on commit 82734fd

Please sign in to comment.