diff options
| author | Gerd Möllmann | 2024-10-05 18:55:18 +0200 |
|---|---|---|
| committer | Gerd Möllmann | 2024-10-05 18:55:18 +0200 |
| commit | beb5b77123619758c1def6b9f227fa7568516775 (patch) | |
| tree | 809e025df6a48b10f3022558f23840a8def6cbec /src/terminal.c | |
| parent | 069ecc9c4c3709246a6ff50d09af418444d427c3 (diff) | |
| download | emacs-tty-child-frames.tar.gz emacs-tty-child-frames.zip | |
Preview from my branch on githubtty-child-frames
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 | |||
| 111 | cursor_to (struct frame *f, int vpos, int hpos) | 111 | cursor_to (struct frame *f, int vpos, int hpos) |
| 112 | { | 112 | { |
| 113 | if (FRAME_TERMINAL (f)->cursor_to_hook) | 113 | if (FRAME_TERMINAL (f)->cursor_to_hook) |
| 114 | (*FRAME_TERMINAL (f)->cursor_to_hook) (f, vpos, hpos); | 114 | (*FRAME_TERMINAL (f)->cursor_to_hook) (f, vpos + f->top_pos, |
| 115 | hpos + f->left_pos); | ||
| 115 | } | 116 | } |
| 116 | 117 | ||
| 117 | /* Similar but don't take any account of the wasted characters. */ | 118 | /* Similar but don't take any account of the wasted characters. */ |
| @@ -120,7 +121,8 @@ void | |||
| 120 | raw_cursor_to (struct frame *f, int row, int col) | 121 | raw_cursor_to (struct frame *f, int row, int col) |
| 121 | { | 122 | { |
| 122 | if (FRAME_TERMINAL (f)->raw_cursor_to_hook) | 123 | if (FRAME_TERMINAL (f)->raw_cursor_to_hook) |
| 123 | (*FRAME_TERMINAL (f)->raw_cursor_to_hook) (f, row, col); | 124 | (*FRAME_TERMINAL (f)->raw_cursor_to_hook) (f, row + f->top_pos, |
| 125 | col + f->left_pos); | ||
| 124 | } | 126 | } |
| 125 | 127 | ||
| 126 | /* Erase operations. */ | 128 | /* Erase operations. */ |