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:
@@ -1,5 +1,8 @@
|
|||||||
[Changes 1.2.2]
|
[Changes 1.2.2]
|
||||||
|
|
||||||
|
* Change $geom() to return current screen's geometry, not the original
|
||||||
|
terminal's. (caf)
|
||||||
|
|
||||||
* Fix $statsparse() scripting function to handle right-justified status
|
* Fix $statsparse() scripting function to handle right-justified status
|
||||||
formats correctly and improve efficiency of all status formatting. (caf)
|
formats correctly and improve efficiency of all status formatting. (caf)
|
||||||
|
|
||||||
|
|||||||
@@ -4208,8 +4208,7 @@ BUILT_IN_FUNCTION(function_channelmode, word)
|
|||||||
|
|
||||||
BUILT_IN_FUNCTION(function_geom, words)
|
BUILT_IN_FUNCTION(function_geom, words)
|
||||||
{
|
{
|
||||||
/* Erf. CO and LI are ints. (crowman) */
|
return m_sprintf("%d %d", current_window->screen->co, current_window->screen->li);
|
||||||
return m_sprintf("%d %d", current_term->co, current_term->li);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BUILT_IN_FUNCTION(function_pass, words)
|
BUILT_IN_FUNCTION(function_pass, words)
|
||||||
|
|||||||
Reference in New Issue
Block a user