Show More
@@ -159,7 +159,12 b' def uisetup(ui):' | |||||
159 | _runpager(ui, p) |
|
159 | _runpager(ui, p) | |
160 | return orig(ui, options, cmd, cmdfunc) |
|
160 | return orig(ui, options, cmd, cmdfunc) | |
161 |
|
161 | |||
|
162 | # Wrap dispatch._runcommand after color is loaded so color can see | |||
|
163 | # ui.pageractive. Otherwise, if we loaded first, color's wrapped | |||
|
164 | # dispatch._runcommand would run without having access to ui.pageractive. | |||
|
165 | def afterloaded(loaded): | |||
162 | extensions.wrapfunction(dispatch, '_runcommand', pagecmd) |
|
166 | extensions.wrapfunction(dispatch, '_runcommand', pagecmd) | |
|
167 | extensions.afterloaded('color', afterloaded) | |||
163 |
|
168 | |||
164 | def extsetup(ui): |
|
169 | def extsetup(ui): | |
165 | commands.globalopts.append( |
|
170 | commands.globalopts.append( |
General Comments 0
You need to be logged in to leave comments.
Login now