Skip to content
Browse files

Fixed FocusMode

  • Loading branch information...
1 parent 4f97112 commit 0c23b6af1c9dd38cb85e8390f5878f2e573ccde4 @icebeat committed
Showing with 3 additions and 4 deletions.
  1. +1 −1 css.css
  2. +2 −3 js/commands.js
View
2 css.css
@@ -156,4 +156,4 @@ body { overflow: auto; }
/* Focus Mode */
.focusmode p { color: #CCC; }
-.focusmode em, .focusmode del:after { border-bottom: 2px solid #CCC; }
+.focusmode em, .focusmode del:before { border-bottom: 2px solid #CCC; }
View
5 js/commands.js
@@ -455,10 +455,9 @@ Extend(Editor.prototype, {
if (value[0] == start[0] && !(value[1] || this.textSelected)) {
value = "";
line = from.line;
- add = "";
del = start[0];
- var position = this.getPositionFromChar(from.line, 0);
- this.replaceLines(from.line, to.line, value);
+ this.replaceLines(line, to.line, value);
+ var position = this.getPositionFromChar(line, 0);
this.addHistory({
action: "newline",
add: "",

0 comments on commit 0c23b6a

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