Browse files

Fixed position (SmartTyping)

  • Loading branch information...
1 parent f6fd9c8 commit 1a2447301f3e03be27870c94b1469e0c22d77808 @icebeat committed May 19, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 js/commands.js
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 1a24473

Please sign in to comment.