Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed position (SmartTyping)

  • Loading branch information...
commit 1a2447301f3e03be27870c94b1469e0c22d77808 1 parent f6fd9c8
Daniel Mota icebeat authored

Showing 1 changed file with 2 additions and 3 deletions. Show diff stats Hide diff stats

  1. +2 3 js/commands.js
5 js/commands.js
@@ -455,10 +455,9 @@ Extend(Editor.prototype, {
455 455 if (value[0] == start[0] && !(value[1] || this.textSelected)) {
456 456 value = "";
457 457 line = from.line;
458   - add = "";
459 458 del = start[0];
460   - var position = this.getPositionFromChar(from.line, 0);
461   - this.replaceLines(from.line, to.line, value);
  459 + this.replaceLines(line, to.line, value);
  460 + var position = this.getPositionFromChar(line, 0);
462 461 this.addHistory({
463 462 action: "newline",
464 463 add: "",

0 comments on commit 1a24473

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