summaryrefslogtreecommitdiff
path: root/lisp/term/xterm.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/term/xterm.el')
-rw-r--r--lisp/term/xterm.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/term/xterm.el b/lisp/term/xterm.el
index d66646876b1..5c387cb4148 100644
--- a/lisp/term/xterm.el
+++ b/lisp/term/xterm.el
@@ -123,7 +123,7 @@ for the currently selected frame. The first 16 colors are taken from
`xterm-standard-colors', which see, while the rest are computed assuming
either the 88- or 256-color standard color scheme supported by latest
versions of xterm."
- (let* ((ncolors (display-color-cells))
+ (let* ((ncolors (display-color-cells (selected-frame)))
(colors xterm-standard-colors)
(color (car colors)))
(if (> ncolors 0)