disable auto indent for pasted code
This commit is contained in:
parent
bf88abd8d9
commit
a7a7dc06f3
1 changed files with 4 additions and 2 deletions
|
|
@ -430,8 +430,10 @@ var Editor =function(renderer, session) {
|
||||||
this.moveCursorToPosition(end);
|
this.moveCursorToPosition(end);
|
||||||
|
|
||||||
var lineState = this.bgTokenizer.getState(cursor.row);
|
var lineState = this.bgTokenizer.getState(cursor.row);
|
||||||
// multi line insert
|
// TODO disabled multiline auto indent
|
||||||
if (cursor.row !== end.row) {
|
// possibly doing the indent before inserting the text
|
||||||
|
// if (cursor.row !== end.row) {
|
||||||
|
if (this.session.getDocument().isNewLine(text)) {
|
||||||
var size = this.session.getTabSize(),
|
var size = this.session.getTabSize(),
|
||||||
minIndent = Number.MAX_VALUE;
|
minIndent = Number.MAX_VALUE;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue