Change $geom() to return current screen's geometry, not the original terminal's

This only affects additional screens created with /window create, which is an unusual
configuration.
This commit is contained in:
Kevin Easton
2017-09-15 17:39:52 +10:00
parent 70ac43ce77
commit 5bd8a40cf8
2 changed files with 4 additions and 2 deletions

View File

@@ -4208,8 +4208,7 @@ BUILT_IN_FUNCTION(function_channelmode, word)
BUILT_IN_FUNCTION(function_geom, words)
{
/* Erf. CO and LI are ints. (crowman) */
return m_sprintf("%d %d", current_term->co, current_term->li);
return m_sprintf("%d %d", current_window->screen->co, current_window->screen->li);
}
BUILT_IN_FUNCTION(function_pass, words)