prefs: return the resolved editor variable
commit8f0f22e2adc7dfb09a75879fab9bb5404d33d561
authorDavid Aguilar <davvid@gmail.com>
Tue, 11 Oct 2022 08:51:31 +0000 (11 01:51 -0700)
committerDavid Aguilar <davvid@gmail.com>
Tue, 11 Oct 2022 08:52:00 +0000 (11 01:52 -0700)
tree0c231ae1419616b844a64542ee215952bd1cc6d4
parent2c77ba5f647dce1752cb5c6c65c8cd797b6cf86b
prefs: return the resolved editor variable

38c80ca52aee0f00c0f8d93e62dff2f893eb22a4 added support for reading
editor configuration values from the environment but it also introduced
a bug where we would return a reference to a function instead of the
resolved value.

Return the resolved value.

Closes #1263
Reported-by: @cheerio via github.com
Signed-off-by: David Aguilar <davvid@gmail.com>
cola/models/prefs.py