Commit ddc6051
committed
actions: Use
Setting options directly in (h.)Buf.Settings without calling SetOption() or
SetOptionNative() is generally not the best idea, since it may not
trigger the needed side effects.
In particular, after micro-editor#3343,
directly setting `diffgutter` and `ruler` causes them not being tracked as
locally overridden per buffer, so if we run the `reload` command,
it unexpectedly replaces them with the default ones.SetOptionNative() instead of setting options directly1 parent 2e94235 commit ddc6051
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1794 | 1794 | | |
1795 | 1795 | | |
1796 | 1796 | | |
1797 | | - | |
1798 | | - | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
1799 | 1800 | | |
1800 | 1801 | | |
1801 | 1802 | | |
1802 | | - | |
1803 | 1803 | | |
1804 | 1804 | | |
1805 | 1805 | | |
1806 | 1806 | | |
1807 | 1807 | | |
1808 | 1808 | | |
1809 | 1809 | | |
1810 | | - | |
1811 | | - | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
1812 | 1813 | | |
1813 | 1814 | | |
1814 | | - | |
1815 | 1815 | | |
1816 | 1816 | | |
1817 | 1817 | | |
| |||
0 commit comments