From db5b418659ca78781604bffe1f5c8dd32fd40ad8 Mon Sep 17 00:00:00 2001 From: Jacques Distler Date: Wed, 17 Feb 2010 07:29:15 -0600 Subject: [PATCH] Andrew Stacey says I can't count ... --- public/javascripts/page_helper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/javascripts/page_helper.js b/public/javascripts/page_helper.js index 30e549c6..a5562be3 100644 --- a/public/javascripts/page_helper.js +++ b/public/javascripts/page_helper.js @@ -117,7 +117,7 @@ function setupSVGedit(path){ // finally, slice up the textarea content into before, selected, & after pieces before = t.value.slice(0, begin); selected = t.value.slice(begin, end); - after = t.value.slice(end, t.value.length-1); + after = t.value.slice(end, t.value.length); if (selected && selected != '') { if ( selected.match(/^$/) ) { SVGeditButton.disabled = false;