This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository efm2.
View the commit online.
commit 75c5d420d944bb48b1f292c648f494a725cc6058
Author: Carsten Haitzler (Rasterman) <[email protected]>
AuthorDate: Sun Feb 8 15:06:44 2026 +0000
clean up tyopebuf code
---
src/backends/default/open.c | 20 ++++++++------------
1 file changed, 8 insertions(+), 12 deletions(-)
diff --git a/src/backends/default/open.c b/src/backends/default/open.c
index 2ffeb91..33190d5 100644
--- a/src/backends/default/open.c
+++ b/src/backends/default/open.c
@@ -1735,17 +1735,13 @@ do_handle_cmd(Cmd *c)
}
else if (!strcmp(c->command, "typebuf"))
{
- const char *op, *cpos_str, *line_str;
- int cpos = -1;
char **args = NULL;
-
- // XXX: now handle typebuf commands in the backend
- // XXX: if its a valid cmd - tell front end
- op = cmd_key_find(c, "op"); // "update", "complete", "run", "cursor"
- line_str = cmd_key_find(c, "line");
- cpos_str = cmd_key_find(c, "cursor-pos");
-
- if (cpos_str) cpos = atoi(cpos_str);
+ const char *op = cmd_key_find(c, "op"); // "update", "complete", "run", "cursor"
+ const char *line_str = cmd_key_find(c, "line");
+// dont need this atm.
+// const char *cpos_str = cmd_key_find(c, "cursor-pos");
+// int cpos = -1;
+// if (cpos_str) cpos = atoi(cpos_str);
if (line_str) args = eina_str_split(line_str, " ", -1);
if (args)
{
@@ -1764,7 +1760,7 @@ do_handle_cmd(Cmd *c)
else if ((op) && (!strcmp(op, "complete")))
{
if (args[1])
- {
+ { // we have 1 or more args - assume 1 and its a file/path
Eina_Strbuf *strbuf = cmd_strbuf_new("typebuf-set");
if (_complete_last_arg_path_cmd(args, strbuf, "string"))
cmd_strbuf_print_consume(strbuf);
@@ -1811,7 +1807,7 @@ do_handle_cmd(Cmd *c)
}
}
else if ((op) && (!strcmp(op, "complete")))
- {
+ { // we have 1 or more args - assume 1 and its a file/path
if (args[1])
{
Eina_Strbuf *strbuf = cmd_strbuf_new("typebuf-set");
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.