diff options
Diffstat (limited to 'src/fringe.c')
-rw-r--r-- | src/fringe.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/fringe.c b/src/fringe.c index d788503e91..a126292e1f 100644 --- a/src/fringe.c +++ b/src/fringe.c @@ -1731,10 +1731,8 @@ Return nil if POS is not visible in WINDOW. */) struct glyph_row *row; ptrdiff_t textpos; - if (NILP (window)) - window = selected_window; - CHECK_WINDOW (window); - w = XWINDOW (window); + w = decode_any_window (window); + XSETWINDOW (window, w); if (!NILP (pos)) { |