Skip to content

Commit 4c2bed5

Browse files
committed
set $VISUAL whenever $EDITOR is set
since prompt_toolkit consults $VISUAL first for the \edit command.
1 parent 67ba854 commit 4c2bed5

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

changelog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
Upcoming (TBD)
2+
==============
3+
4+
Internal
5+
---------
6+
* Set `$VISUAL` whenever `$EDITOR` is set.
7+
8+
19
1.58.0 (2026/02/28)
210
==============
311

test/features/environment.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def before_all(context):
3131
"""Set env parameters."""
3232
os.environ["LINES"] = "100"
3333
os.environ["COLUMNS"] = "100"
34+
os.environ["VISUAL"] = "ex"
3435
os.environ["EDITOR"] = "ex"
3536
os.environ["LC_ALL"] = "en_US.UTF-8"
3637
os.environ["PROMPT_TOOLKIT_NO_CPR"] = "1"

0 commit comments

Comments
 (0)