diff options
author | Gerd Möllmann <gerd@gnu.org> | 2024-10-21 18:32:04 +0200 |
---|---|---|
committer | Gerd Möllmann <gerd@gnu.org> | 2024-10-22 06:40:19 +0200 |
commit | 414de92a562e8912ffdc8ed2995e7ea10d05f13b (patch) | |
tree | 9058dd00922ed14319e0e49eb216fcad7ea5fdd6 /src/terminal.c | |
parent | 1854f2751e3f73e1e5f12f6de993b6357de1766b (diff) | |
download | emacs-414de92a562e8912ffdc8ed2995e7ea10d05f13b.tar.gz emacs-414de92a562e8912ffdc8ed2995e7ea10d05f13b.tar.bz2 emacs-414de92a562e8912ffdc8ed2995e7ea10d05f13b.zip |
Initial child frames based on master
This is based on a diff from 2024-10-15 which still applied.
Since then, I've inadvertantly modified the igc branch so that
it is no longer possible to get a clean diff of what has changed
since I created the branch.
Diffstat (limited to 'src/terminal.c')
-rw-r--r-- | src/terminal.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/terminal.c b/src/terminal.c index 5c21341d905..ad488ea3b52 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -111,7 +111,8 @@ void cursor_to (struct frame *f, int vpos, int hpos) { if (FRAME_TERMINAL (f)->cursor_to_hook) - (*FRAME_TERMINAL (f)->cursor_to_hook) (f, vpos, hpos); + (*FRAME_TERMINAL (f)->cursor_to_hook) (f, vpos + f->top_pos, + hpos + f->left_pos); } /* Similar but don't take any account of the wasted characters. */ @@ -120,7 +121,8 @@ void raw_cursor_to (struct frame *f, int row, int col) { if (FRAME_TERMINAL (f)->raw_cursor_to_hook) - (*FRAME_TERMINAL (f)->raw_cursor_to_hook) (f, row, col); + (*FRAME_TERMINAL (f)->raw_cursor_to_hook) (f, row + f->top_pos, + col + f->left_pos); } /* Erase operations. */ |