]> git.wh0rd.org Git - nano.git/commitdiff
more indentation fixes and one more cosmetic fix
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Sat, 14 May 2005 23:21:02 +0000 (23:21 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Sat, 14 May 2005 23:21:02 +0000 (23:21 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2509 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

src/files.c
src/winio.c

index e937aa52e2fc4c23238d1f7a44a38c9620194dc2..275fac141522ee354581195bf26a3e1d96613ad7 100644 (file)
@@ -2891,14 +2891,14 @@ void load_history(void)
 
 bool writehist(FILE *hist, historyheadtype *histhead)
 {
-    historytype *h;
+    historytype *p;
 
     /* Write oldest history first. */
-    for (h = histhead->tail; h->prev != NULL; h = h->prev) {
-       size_t len = strlen(h->data);
+    for (p = histhead->tail; p->prev != NULL; p = p->prev) {
+       size_t p_len = strlen(p->data);
 
-       sunder(h->data);
-       if (fwrite(h->data, sizeof(char), len, hist) < len ||
+       sunder(p->data);
+       if (fwrite(p->data, sizeof(char), p_len, hist) < p_len ||
                putc('\n', hist) == EOF)
            return FALSE;
     }
index 43aba48d4b679fcce8beca2af0a3e09145a02439..5812b9fc9905573fc2c6805c2532ef0fae6fef68 100644 (file)
@@ -2429,13 +2429,13 @@ void nanoget_repaint(const char *buf, const char *inputbuf, size_t x)
  * statusq(). */
 int nanogetstr(bool allow_tabs, const char *buf, const char *def,
 #ifndef NANO_SMALL
-               historyheadtype *history_list,
+       historyheadtype *history_list,
 #endif
-               const shortcut *s
+       const shortcut *s
 #ifndef DISABLE_TABCOMP
-               , bool *list
+       , bool *list
 #endif
-               )
+       )
 {
     int kbinput;
     bool meta_key, func_key, s_or_t, ran_func, finished;