Compare commits
2 Commits
90eab249cd
...
da826d7ae9
Author | SHA1 | Date | |
---|---|---|---|
da826d7ae9 | |||
aa2a1444d8 |
@ -499,7 +499,7 @@ static bool issrcfile(char *path) {
|
||||
bool looks_like_source = false;
|
||||
|
||||
/* ensure there is some file suffix */
|
||||
if(s == NULL || *++s == '\0') return false;
|
||||
if(s == NULL || *(++s) == '\0') { return false; }
|
||||
|
||||
/* if an SCCS or versioned file */
|
||||
if(file[1] == '.' && file + 2 != s) { /* 1 character prefix */
|
||||
|
@ -248,7 +248,6 @@ static int global_input(const int c) {
|
||||
}
|
||||
break;
|
||||
case '+':
|
||||
case ctrl('L'):
|
||||
case KEY_NPAGE:
|
||||
if(totallines == 0) { return 0; } /* don't redisplay if there are no lines */
|
||||
curdispline = 0;
|
||||
@ -386,7 +385,7 @@ int change_input(const int c) {
|
||||
{
|
||||
/* if a line was selected */
|
||||
const int cc = dispchar2int(c);
|
||||
if(cc != -1) {
|
||||
if(cc != -1 && cc < totallines) {
|
||||
change[cc] = !change[cc];
|
||||
window_change |= CH_RESULT;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user