"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "scrollbar.c" between
xterm-367.tgz and xterm-368.tgz

About: xterm is a terminal emulator for X with ISO/ANSI color and vt220 enhancements.

scrollbar.c  (xterm-367.tgz):scrollbar.c  (xterm-368.tgz)
/* $XTermId: scrollbar.c,v 1.211 2021/02/02 00:19:32 tom Exp $ */ /* $XTermId: scrollbar.c,v 1.212 2021/06/06 23:14:52 Stelios.Bounanos Exp $ */
/* /*
* Copyright 2000-2020,2021 by Thomas E. Dickey * Copyright 2000-2020,2021 by Thomas E. Dickey
* *
* All Rights Reserved * All Rights Reserved
* *
* Permission is hereby granted, free of charge, to any person obtaining a * Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the * copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including * "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish, * without limitation the rights to use, copy, modify, merge, publish,
skipping to change at line 382 skipping to change at line 382
} }
} }
void void
WindowScroll(XtermWidget xw, int top, Bool always) WindowScroll(XtermWidget xw, int top, Bool always)
{ {
TScreen *screen = TScreenOf(xw); TScreen *screen = TScreenOf(xw);
(void) always; (void) always;
#if OPT_SCROLL_LOCK #if OPT_SCROLL_LOCK
if (screen->allowScrollLock && (screen->scroll_lock && !always)) { if (((screen->allowScrollLock && screen->scroll_lock)
|| (screen->autoScrollLock && top < 0))
&& !always) {
if (screen->scroll_dirty) { if (screen->scroll_dirty) {
screen->scroll_dirty = False; screen->scroll_dirty = False;
ScrnRefresh(xw, 0, 0, MaxRows(screen), MaxCols(screen), False); ScrnRefresh(xw, 0, 0, MaxRows(screen), MaxCols(screen), False);
} }
} else } else
#endif #endif
{ {
int i; int i;
if (top < -screen->savedlines) { if (top < -screen->savedlines) {
 End of changes. 2 change blocks. 
2 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)