summaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorAndrés <andmarti@gmail.com>2021-03-25 13:49:18 -0300
committerAndrés <andmarti@gmail.com>2021-03-25 13:49:18 -0300
commitbbf3d6552cb9a9cc287220acc6d6e83c3091ca3f (patch)
tree1b409c9a1a06b40ee7a516525c2b10a37d65c631 /src/buffer.c
parentdca777c8d1401590f530c26cee2924190116948d (diff)
Added mappings for command mode.
Handle <ESC> key in mappings. Fixed vmaps in get_mappings function.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/buffer.c b/src/buffer.c
index d3ed274..1d58496 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -50,7 +50,7 @@
#include "utils/string.h"
/**
-* \brief Create buffer as list of blocks
+* \brief Create buffer as list of blocks
*
* \return b
*/
@@ -106,6 +106,7 @@ void copybuffer(struct block * origen, struct block * destino) {
return;
}
+
/**
* \brief Replace the element of a buffer at 'pos' with a '\0'
*
@@ -136,7 +137,7 @@ void del_buf (struct block * buf, int pos) {
}
/**
-* \brief TODO Document fludh_buf()
+* \brief TODO Document flush_buf()
*
* \param[in] buf
*
@@ -147,8 +148,7 @@ void flush_buf (struct block * buf) {
if (buf == NULL) return;
struct block * aux, * np;
- for (aux = buf->pnext; aux != NULL; aux = np)
- {
+ for (aux = buf->pnext; aux != NULL; aux = np) {
np = aux->pnext;
free(aux);
}
@@ -175,7 +175,7 @@ void erase_buf (struct block * buf) {
}
/**
-* \brief Get size of buffer (indlucded special chars)
+* \brief Get size of buffer (included special chars)
*
* \param[in] buf
*
@@ -247,7 +247,7 @@ int find_val(struct block * buf, int value) {
if (b_aux->value == value) return 1;
b_aux = b_aux->pnext;
}
- return 0;
+ return 0;
}
/**