]> git.neil.brown.name Git - edlib.git/commitdiff
linecount: ignore Notify:Clip
authorNeilBrown <neil@brown.name>
Fri, 2 Jun 2023 09:14:03 +0000 (19:14 +1000)
committerNeilBrown <neil@brown.name>
Wed, 28 Jun 2023 05:40:21 +0000 (15:40 +1000)
We cannot possible get a Notify:Clip message, so don't try to handle it.

Notify:Clip comes from a child, and we don't have any.
The only commands we can get are ones we have explicitly requested from
the doc.

Signed-off-by: NeilBrown <neil@brown.name>
lib-linecount.c

index 66726338076ed2040920565be16e5d83aabca58d..771b920415a5dbe0288f45ab6a01da6fc52bbd88 100644 (file)
@@ -292,15 +292,6 @@ DEF_CMD(linecount_notify_goto)
        return 1;
 }
 
-DEF_CMD(linecount_clip)
-{
-       struct count_info *cli = ci->home->data;
-
-       marks_clip(ci->home, ci->mark, ci->mark2, cli->view_num, ci->home,
-                  !!ci->num);
-       return Efallthrough;
-}
-
 DEF_CMD(count_lines)
 {
        char *type = pane_attr_get(ci->focus, "doc-type");
@@ -354,6 +345,5 @@ void edlib_init(struct pane *ed safe)
        key_add(linecount_map, "doc:replaced", &linecount_notify_replace);
        key_add(linecount_map, "doc:CountLines", &linecount_notify_count);
        key_add(linecount_map, "doc:GotoLine", &linecount_notify_goto);
-       key_add(linecount_map, "Notify:clip", &linecount_clip);
        key_add(linecount_map, "Free", &edlib_do_free);
 }