home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd82dfa
)
If pad ends leftwards of current right screen border, allow pad scrolling to the...
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 28 Jun 2013 20:43:32 +0000
(22:43 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 28 Jun 2013 20:43:32 +0000
(22:43 +0200)
src/windows.c
patch
|
blob
|
history
diff --git
a/src/windows.c
b/src/windows.c
index 181247caf619a682cae2ec44e64bb6457d453c3f..33b9b3145acfdd51717e0f0e8fb3faa80afb6383 100644
(file)
--- a/
src/windows.c
+++ b/
src/windows.c
@@
-295,5
+295,6
@@
extern void shift_active_win (struct WinMeta * wmeta, char dir) {
extern void reset_pad_offset(struct WinMeta * wmeta, uint16_t new_offset) {
// Apply new_offset to windows pad, if it proves to be sane.
- if (new_offset >= 0 && new_offset + wmeta->pad.size.x < getmaxx(wmeta->pad.curses_win))
+ if (new_offset >= 0
+ && (new_offset < wmeta->pad_offset || new_offset + wmeta->pad.size.x < getmaxx(wmeta->pad.curses_win)))
wmeta->pad_offset = new_offset; }