Show More
@@ -85,7 +85,7 b' class _BrowserCachedItem(object):' | |||||
85 |
|
85 | |||
86 |
|
86 | |||
87 | class _BrowserHelp(object): |
|
87 | class _BrowserHelp(object): | |
88 |
style_header = astyle.Style.fromstr(" |
|
88 | style_header = astyle.Style.fromstr("yellow:black:bold") | |
89 | # This is used internally by ``ibrowse`` for displaying the help screen. |
|
89 | # This is used internally by ``ibrowse`` for displaying the help screen. | |
90 | def __init__(self, browser): |
|
90 | def __init__(self, browser): | |
91 | self.browser = browser |
|
91 | self.browser = browser | |
@@ -340,7 +340,7 b' class _BrowserLevel(object):' | |||||
340 | # drop rows from the end |
|
340 | # drop rows from the end | |
341 | del self.displayrows[self.datastarty-olddatastarty:] |
|
341 | del self.displayrows[self.datastarty-olddatastarty:] | |
342 | # fetch new items |
|
342 | # fetch new items | |
343 | for i in xrange(olddatastarty-1, |
|
343 | for i in xrange(min(olddatastarty, self.datastarty+self.mainsizey)-1, | |
344 | self.datastarty-1, -1): |
|
344 | self.datastarty-1, -1): | |
345 | try: |
|
345 | try: | |
346 | row = self.getrow(i) |
|
346 | row = self.getrow(i) | |
@@ -352,7 +352,7 b' class _BrowserLevel(object):' | |||||
352 | # drop rows from the start |
|
352 | # drop rows from the start | |
353 | del self.displayrows[:self.datastarty-olddatastarty] |
|
353 | del self.displayrows[:self.datastarty-olddatastarty] | |
354 | # fetch new items |
|
354 | # fetch new items | |
355 | for i in xrange(olddatastarty+self.mainsizey, |
|
355 | for i in xrange(max(olddatastarty+self.mainsizey, self.datastarty), | |
356 | self.datastarty+self.mainsizey): |
|
356 | self.datastarty+self.mainsizey): | |
357 | try: |
|
357 | try: | |
358 | row = self.getrow(i) |
|
358 | row = self.getrow(i) | |
@@ -862,7 +862,7 b' class ibrowse(ipipe.Display):' | |||||
862 | Return a style for displaying the original style ``style`` |
|
862 | Return a style for displaying the original style ``style`` | |
863 | in the row the cursor is on. |
|
863 | in the row the cursor is on. | |
864 | """ |
|
864 | """ | |
865 |
return astyle.Style(style.fg, style. |
|
865 | return astyle.Style(style.fg, astyle.COLOR_BLUE, style.attrs | astyle.A_BOLD) | |
866 |
|
866 | |||
867 | def report(self, msg): |
|
867 | def report(self, msg): | |
868 | """ |
|
868 | """ |
@@ -1,3 +1,9 b'' | |||||
|
1 | 2006-06-28 Walter Doerwald <walter@livinglogic.de> | |||
|
2 | ||||
|
3 | * IPython/Extensions/ibrowse.py: Give the ibrowse cursor row | |||
|
4 | a blue background. Fix fetching new display rows when the browser | |||
|
5 | scrolls more than a screenful (e.g. by using the goto command). | |||
|
6 | ||||
1 | 2006-06-27 Ville Vainio <vivainio@gmail.com> |
|
7 | 2006-06-27 Ville Vainio <vivainio@gmail.com> | |
2 |
|
8 | |||
3 | * Magic.py (_inspect, _ofind) Apply David Huard's |
|
9 | * Magic.py (_inspect, _ofind) Apply David Huard's |
General Comments 0
You need to be logged in to leave comments.
Login now