Commit f16a449
committed
gitk: persist position and size of the Tags and Heads window
The Tags and Heads window always opens at a default position and size,
requiring users to reposition it each time. Remember its geometry
between sessions in the config file as `geometry(showrefs)`.
Note that the existing configuration is sourced in proc savestuff
right before new settings are written. This makes the old settings
available as local variables(!) and does not overwrite the current
settings. Since we need access to the global geometry(showrefs), it
is necessary to unset the local variable.
Helped-by: Michael Rappazzo <rappazzo@gmail.com>
Signed-off-by: Johannes Sixt <j6t@kdbg.org>1 parent 3caa13b commit f16a449
1 file changed
Lines changed: 20 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2131 | 2131 | | |
2132 | 2132 | | |
2133 | 2133 | | |
2134 | | - | |
| 2134 | + | |
2135 | 2135 | | |
2136 | 2136 | | |
2137 | | - | |
2138 | | - | |
2139 | | - | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
2140 | 2142 | | |
2141 | 2143 | | |
2142 | 2144 | | |
| |||
3106 | 3108 | | |
3107 | 3109 | | |
3108 | 3110 | | |
| 3111 | + | |
| 3112 | + | |
| 3113 | + | |
| 3114 | + | |
| 3115 | + | |
3109 | 3116 | | |
3110 | 3117 | | |
3111 | 3118 | | |
| |||
10193 | 10200 | | |
10194 | 10201 | | |
10195 | 10202 | | |
| 10203 | + | |
10196 | 10204 | | |
10197 | 10205 | | |
10198 | 10206 | | |
| |||
10203 | 10211 | | |
10204 | 10212 | | |
10205 | 10213 | | |
10206 | | - | |
| 10214 | + | |
| 10215 | + | |
| 10216 | + | |
| 10217 | + | |
| 10218 | + | |
10207 | 10219 | | |
10208 | 10220 | | |
10209 | 10221 | | |
| |||
10239 | 10251 | | |
10240 | 10252 | | |
10241 | 10253 | | |
| 10254 | + | |
| 10255 | + | |
| 10256 | + | |
10242 | 10257 | | |
10243 | 10258 | | |
10244 | 10259 | | |
| |||
0 commit comments