Several bug fixes.

This commit is contained in:
2014-11-03 23:37:34 +01:00
parent 1414d634fd
commit b1ab5822a7
4 changed files with 91 additions and 36 deletions

View File

@@ -59,10 +59,22 @@ function Buffer (client, buffId) {
};
//Tell Vim that the buffer is owned by the controler
//Réception d'événéments si vrai
this.netbeansBuffer = function (isNetBeansBuffer) {
client.sendCommand("netbeansBuffer", buffId, Types.bool(isNetBeansBuffer));
};
//Start an atomic opperation. Vim screen is not updated untill endAtomic is called
//BUG : Interprété comme un startDocumentListen
this.startAtomic = function () {
client.sendCommand("startAtomic", buffId);
};
//End an atomic opperation.
//BUG : Ne fais rien du tout
this.endAtomic = function() {
client.sendCommand("endAtmoic", buffId );
};
//Remove and anno
this.removeAnno = function (serNum) {
client.sendCommand("removeAnno",buffId,serNum);
@@ -119,6 +131,7 @@ function Buffer (client, buffId) {
};
//Ungard the text. off is the starting position, len the length of the text
//BUG : Doesn't works at all, text area keeps guard
this.unguard = function (off, len) {
client.sendCommand("unguard", buffId, Types.position(off), len);
};
@@ -128,23 +141,10 @@ function Buffer (client, buffId) {
client.sendCommand("editFile", buffId, Types.string(pathName));
};
//Start an atomic opperation. Vim screen is not updated untill endAtomic is called
this.startAtomic = function () {
client.sendCommand("startAtomic", buffId);
};
//End an atomic opperation.
this.endAtomic = function() {
client.sendCommand("endAtmoic", buffId);
};
/* FUNCTIONS */
//Get cursor position. Callback function get the line, column and offset
this.getCursor = function (callback) {
client.callFunction("getCursor", buffId, callback);
};
//Get the length of current buffer.
this.getLength = function (callback) {