Mercurial > hg
comparison mcabber/src/screen.c @ 828:319fc55b9a2b
Fix a bug in check_offset()
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 30 Apr 2006 14:19:31 +0200 |
parents | 04da822bc47c |
children | 7c210263c661 |
comparison
equal
deleted
inserted
replaced
827:04da822bc47c | 828:319fc55b9a2b |
---|---|
1957 while (ptr_inputline <= (char*)&inputLine + inputline_offset) { | 1957 while (ptr_inputline <= (char*)&inputLine + inputline_offset) { |
1958 if (inputline_offset) { | 1958 if (inputline_offset) { |
1959 inputline_offset -= 5; | 1959 inputline_offset -= 5; |
1960 if (inputline_offset < 0) | 1960 if (inputline_offset < 0) |
1961 inputline_offset = 0; | 1961 inputline_offset = 0; |
1962 } | 1962 } else |
1963 break; | |
1963 } | 1964 } |
1964 } | 1965 } |
1965 // Right side | 1966 // Right side |
1966 if (direction >= 0) { | 1967 if (direction >= 0) { |
1967 while (ptr_inputline >= inputline_offset + (char*)&inputLine + maxX) | 1968 while (ptr_inputline >= inputline_offset + (char*)&inputLine + maxX) |