Commit 5d11f79
gitk: Don't clobber "Remember this view" setting
In the View → Edit View... dialog, the "Remember this view" option
always starts out unset. Using the dialog to change an existing view
and ignoring the parts of the dialog that aren’t relevant results in
both the old and new versions of the view being lost.
The cause: right after newviewopts($curview,perm) is set to an
appropriate value, decode_view_opts is clobbering it with the default
value. If that call is moved a little earlier, the "Remember this
view" option gets properly set to its previous value, fixing the
problem.
Reported-by: Steve Cotton <steve0001@s.cotton.clara.co.uk>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>1 parent e7feb69 commit 5d11f79
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3811 | 3811 | | |
3812 | 3812 | | |
3813 | 3813 | | |
| 3814 | + | |
3814 | 3815 | | |
3815 | 3816 | | |
3816 | 3817 | | |
3817 | | - | |
3818 | 3818 | | |
3819 | 3819 | | |
3820 | 3820 | | |
| |||
3968 | 3968 | | |
3969 | 3969 | | |
3970 | 3970 | | |
| 3971 | + | |
3971 | 3972 | | |
3972 | 3973 | | |
3973 | 3974 | | |
3974 | | - | |
3975 | 3975 | | |
3976 | 3976 | | |
3977 | 3977 | | |
| |||
0 commit comments