]> git.neil.brown.name Git - edlib.git/commitdiff
Remove ci->pointp
authorNeilBrown <neil@brown.name>
Thu, 26 Nov 2015 07:11:36 +0000 (18:11 +1100)
committerNeilBrown <neil@brown.name>
Thu, 26 Nov 2015 07:11:36 +0000 (18:11 +1100)
Now completely gone.

Signed-off-by: NeilBrown <neil@brown.name>
core-keymap.c
core.h

index 380f1bc88c7ab8f454d324dc0c8bf47d2a12f8aa..289d93790fe8d90c704c326f2347fe556b995f54 100644 (file)
@@ -304,13 +304,7 @@ int key_handle(struct cmd_info *ci)
 
        ci->hx = ci->x;
        ci->hy = ci->y;
-       if (!ci->pointp) {
-               struct pane *p2 = p;
-               while (p2 && !p2->point)
-                       p2 = p2->parent;
-               if (p2)
-                       ci->pointp = &p2->point;
-       }
+
        while (ret == 0 && p) {
                if (p->handle) {
                        ci->home = p;
@@ -336,8 +330,6 @@ static int __key_handle_focus(struct cmd_info *ci, int savepoint)
        ci->x = -1;
        ci->y = -1;
        while (p->focus) {
-               if (p->point && !ci->pointp)
-                       ci->pointp = &p->point;
                p = p->focus;
                if (savepoint && p->point)
                        ci->mark = &p->point->m;
@@ -366,9 +358,6 @@ static int __key_handle_xy(struct cmd_info *ci, int savepoint)
        while (1) {
                struct pane *t, *chld = NULL;
 
-               if (p->point)
-                       ci->pointp = &p->point;
-
                list_for_each_entry(t, &p->children, siblings) {
                        if (x < t->x || x >= t->x + t->w)
                                continue;
diff --git a/core.h b/core.h
index 2974754b2d770484264e7cafbddbfbbb923726a7..f930e5a8b5e30ace9092e31e525bc7b657a369e1 100644 (file)
--- a/core.h
+++ b/core.h
@@ -266,7 +266,6 @@ struct cmd_info {
        int             hx, hy;         /* x,y mapped to 'home' */
        char            *str, *str2;
        struct mark     *mark, *mark2;
-       struct point    **pointp;
        struct command  *comm, *comm2;
 };
 #define        NO_NUMERIC      (INT_MAX/2)