Commit d4a0312
committed
Set the vterm buffer's major mode before displaying the buffer.
This ensures that display-buffer actions that condition on a buffer's
major mode (see the documentation of `display-buffer-alist` and
`buffer-match-p`) properly catch the buffer when it is displayed for the
first time.
This aligns with the behavior of other terminal emulator
modes (e.g. term and ansi-term) and comint-derived modes (e.g. ielm,
SQLi, and inferior Python).1 parent 056ad74 commit d4a0312
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1503 | 1503 | | |
1504 | 1504 | | |
1505 | 1505 | | |
1506 | | - | |
1507 | 1506 | | |
1508 | 1507 | | |
1509 | 1508 | | |
| 1509 | + | |
1510 | 1510 | | |
1511 | 1511 | | |
1512 | 1512 | | |
| |||
0 commit comments