1
1

tweaks: fix some whitespace errors, and convert alignment tabs to spaces

Этот коммит содержится в:
Benno Schulenberg 2017-12-29 21:35:14 +01:00
родитель 87206c0607
Коммит 17429d7f38
11 изменённых файлов: 84 добавлений и 85 удалений

Просмотреть файл

@ -1452,9 +1452,9 @@ bool outside_of_confinement(const char *currpath, bool allow_tabcomp)
int prompt_failed_backupwrite(const char *filename)
{
static int response;
static char *prevfile = NULL; /* What was the last file we were
* passed so we don't keep asking
* this? Though maybe we should... */
static char *prevfile = NULL;
/* The last file we were passed, so we don't keep asking this.
* Though maybe we should? */
if (prevfile == NULL || strcmp(filename, prevfile)) {
response = do_yesno_prompt(FALSE, _("Failed to write backup file; "
"continue saving? (Say N if unsure.) "));
@ -1471,7 +1471,7 @@ void init_backup_dir(void)
backup_dir = free_and_assign(backup_dir, get_full_path(backup_dir));
/* If we can't get an absolute path (which means it doesn't exist or
isn't accessible), or it's not a directory, fail. */
* isn't accessible), or it's not a directory, fail. */
if (backup_dir == NULL || backup_dir[strlen(backup_dir) - 1] != '/')
die(_("Invalid backup directory\n"));
@ -2224,8 +2224,8 @@ int do_writeout(bool exiting, bool withprompt)
if (ISSET(TEMP_FILE) && withprompt) {
free(given);
if (response == 1)
return write_file(openfile->filename,
NULL, FALSE, OVERWRITE, TRUE);
return write_file(openfile->filename, NULL,
FALSE, OVERWRITE, TRUE);
else if (response == 0)
return 2;
else

Просмотреть файл

@ -3139,8 +3139,7 @@ void do_linter(void)
*
* filenameorcategory:line:column:message (e.g. splint)
* filenameorcategory:line,column:message (e.g. pylint)
* filenameorcategory:line:message (e.g. pyflakes)
*/
* filenameorcategory:line:message (e.g. pyflakes) */
if (strstr(message, ": ") != NULL) {
filename = strtok(read_buff_word, ":");
if ((linestr = strtok(NULL, ":")) != NULL) {