+2014-06-10 Benno Schulenberg <bensberg@justemail.net>
+ * src/browser.c, src/files.c, src/nano.c src/prompt.c, src/winio.c:
+ A few minimalistic whitespace adjustments.
+
2014-06-10 David Lawrence Ramsey <pooka109@gmail.com>
* src/winio.c: One more type fix and two tiny message tweaks.
/* Don't show the "." entry. */
if (strcmp(nextdir->d_name, ".") == 0)
- continue;
+ continue;
d_len = strlenpt(nextdir->d_name);
if (d_len > longest)
while ((nextdir = readdir(dir)) != NULL && i < filelist_len) {
/* Don't show the "." entry. */
if (strcmp(nextdir->d_name, ".") == 0)
- continue;
+ continue;
filelist[i] = charalloc(path_len + strlen(nextdir->d_name) + 1);
sprintf(filelist[i], "%s%s", path, nextdir->d_name);
if (ISSET(INSECURE_BACKUP))
backup_cflags = O_WRONLY | O_CREAT | O_APPEND;
- else
+ else
backup_cflags = O_WRONLY | O_CREAT | O_EXCL | O_APPEND;
backup_fd = open(backupname, backup_cflags,
goto cleanup_and_exit;
}
- /* We shouldn't worry about chown()ing something if we're not
- root, since it's likely to fail! */
+ /* We shouldn't worry about chown()ing something if we're not
+ * root, since it's likely to fail! */
if (geteuid() == NANO_ROOT_UID && fchown(backup_fd,
openfile->current_stat->st_uid, openfile->current_stat->st_gid) == -1
&& !ISSET(INSECURE_BACKUP)) {
* output all the characters in the input buffer if it isn't
* empty. Note that it should be empty if we're in view
* mode. */
- if (have_shortcut || get_key_buffer_len() == 0) {
+ if (have_shortcut || get_key_buffer_len() == 0) {
#ifndef DISABLE_WRAPPING
/* If we got a shortcut or toggle, and it's not the shortcut
* for verbatim input, turn off prepending of wrapped text. */
goto precalc_cleanup;
}
if (regexec(tmpcolor->end, endptr->data, 1, &endmatch, 0) == 0)
- break;
+ break;
}
if (endptr == NULL) {
* move to an older search, which means that finished has
* been set to TRUE. Set it back to FALSE here, so that
* we aren't kicked out of the statusbar prompt. */
- finished = FALSE;
+ finished = FALSE;
}
} else if (s && s->scfunc == get_history_newer_void) {
if (history_list != NULL) {
/* Slang doesn't support KEY_SDC. */
case KEY_SDC:
if (ISSET(REBIND_DELETE))
- retval = sc_seq_or(do_delete, *kbinput);
+ retval = sc_seq_or(do_delete, *kbinput);
else
- retval = sc_seq_or(do_backspace, *kbinput);
+ retval = sc_seq_or(do_backspace, *kbinput);
break;
#endif
#ifdef KEY_SIC
* wheel is equivalent to moving down three lines. */
for (i = 0; i < 3; i++)
unget_kbinput((mevent.bstate & BUTTON4_PRESSED) ?
- sc_seq_or(do_up_void, 0) : sc_seq_or(do_down_void, 0),
+ sc_seq_or(do_up_void, 0) : sc_seq_or(do_down_void, 0),
FALSE, FALSE);
return 1;
* Small Letter O with Diaresis) if applicable. */
credits[16] =
#ifdef ENABLE_UTF8
- using_utf8() ? "Florian K\xC3\xB6nig" :
+ using_utf8() ? "Florian K\xC3\xB6nig" :
#endif
"Florian K\xF6nig";