From 8a547b24ba2500b27b433070a1e8019548103b09 Mon Sep 17 00:00:00 2001 From: John McLear Date: Sat, 7 Dec 2013 17:37:52 +0000 Subject: [PATCH] resolve issue where first char showed all formatting --- src/static/js/ace2_inner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/static/js/ace2_inner.js b/src/static/js/ace2_inner.js index 4ff0efcf7..56d8cc19b 100644 --- a/src/static/js/ace2_inner.js +++ b/src/static/js/ace2_inner.js @@ -2399,8 +2399,8 @@ function Ace2Inner(){ if(rep.selStart[1] == rep.selEnd[1] && rep.selStart[1] == rep.lines.atIndex(n).text.length){ return false; // If we're at the end of a line we treat it as having no formatting } - if(rep.selStart[1] == 1 && rep.selEnd[1] == 1){ - return false; // If we're at the start of a line we treat it as having no formatting + if(rep.selStart[1] == 0 && rep.selEnd[1] == 0){ + return false; // If we're at the start of a line attributes get confused.. } if (n == selStartLine) {