TRUE,
#endif
MWHEREISFILE, backupstring,
- &meta_key, &func_key,
+ &meta_key, &func_key,
#ifndef NANO_TINY
&search_history,
#endif
* found".
*
* Return -2 if we say "New File", -1 if the file isn't opened, and the
- * fd opened otherwise. The file might still have an error while reading
+ * fd opened otherwise. The file might still have an error while reading
* with a 0 return value. *f is set to the opened file. */
int open_file(const char *filename, bool newfie, FILE **f)
{
/* Okay, if we can't stat the path due to a component's
permissions, just try the relative one */
- if (full_filename == NULL
+ if (full_filename == NULL
|| (stat(full_filename, &fileinfo) == -1 && stat(filename, &fileinfo2) != -1))
full_filename = mallocstrcpy(NULL, filename);
#endif
bool edit_refresh_needed = 0;
- /* Did a command mangle enough of the buffer refresh that we
+ /* Did a command mangle enough of the buffer refresh that we
should repaint the screen */
const shortcut *currshortcut;
/* Return the given menu's first shortcut sequence, or the default value
(2nd arg). Assumes currmenu for the menu to check*/
-int sc_seq_or (void (*func)(void), int defaultval)
+int sc_seq_or (void (*func)(void), int defaultval)
{
const sc *s = first_sc_for(currmenu, func);
}
-/* Assign the info to the shortcut struct
+/* Assign the info to the shortcut struct
Assumes keystr is already assigned, naturally */
void assign_keyinfo(sc *s)
{
#ifndef NANO_TINY
- add_to_funcs(do_mark, MMAIN, N_("Mark Text"),
+ add_to_funcs(do_mark, MMAIN, N_("Mark Text"),
IFSCHELP(nano_mark_msg), FALSE, VIEW);
add_to_funcs(do_research, (MMAIN|MBROWSER), whereis_next_msg,
IFSCHELP(nano_wordcount_msg), FALSE, VIEW);
#endif
- add_to_funcs(total_refresh, (MMAIN|MHELP), refresh_msg,
+ add_to_funcs(total_refresh, (MMAIN|MHELP), refresh_msg,
IFSCHELP(nano_refresh_msg), FALSE, VIEW);
add_to_funcs(do_suspend_void, MMAIN, suspend_msg,
if (ISSET(SOFTWRAP) && openfile->current) {
skipped += strlenpt(openfile->current->data) / COLS;
#ifdef DEBUG
- fprintf(stderr, "do_page_up: i = %d, skipped = %d based on line %ld len %d\n", i, (unsigned long) skipped,
+ fprintf(stderr, "do_page_up: i = %d, skipped = %d based on line %ld len %d\n", i, (unsigned long) skipped,
openfile->current->lineno, strlenpt(openfile->current->data));
#endif
}
-/* $Id$ */
+/* $Id$ */
/**************************************************************************
* nano.c *
* *
#endif
}
- /* Well we might also need a full refresh if we've changed the
+ /* Well we might also need a full refresh if we've changed the
line length to be a new multiple of COLS */
if (ISSET(SOFTWRAP) && edit_refresh_needed == FALSE)
if (strlenpt(openfile->current->data) / COLS != orig_lenpt / COLS)
#ifndef DISABLE_WRAPPING
/* Overwrite an rcfile "set nowrap" or --disable-wrapping-as-root
- if a --fill option was given on the command line. */
+ if a --fill option was given on the command line. */
if (fill_used)
UNSET(NO_WRAP);
#endif
} subnfunc;
-/* Enumeration to be used in flags table. See FLAGBIT and FLAGOFF
+/* Enumeration to be used in flags table. See FLAGBIT and FLAGOFF
* definitions. */
enum
{
-/* $Id$ */
+/* $Id$ */
/**************************************************************************
* text.c *
* *
/* Ugh, if we were called while cutting not-to-end, non-marked and on the same lineno,
we need to abort here */
u = fs->current_undo;
- if (current_action == CUT && u && u->type == CUT
+ if (current_action == CUT && u && u->type == CUT
&& !u->mark_set && u->lineno == fs->current->lineno)
return;
/* Try to get a function back from a window. Just a wrapper so
- functions to need to create function_key meta_key blah blah
+ functions to need to create function_key meta_key blah blah
mmenu - what menu name to look through for valid funcs */
const subnfunc *getfuncfromkey(WINDOW *win)
{