Commit 72d8e54f authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

refresh the screen when Ctrl-L is pressed at the statusbar prompt, as

Pico does


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1942 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 09b34ed3
Showing with 6 additions and 0 deletions
+6 -0
...@@ -116,6 +116,9 @@ CVS code - ...@@ -116,6 +116,9 @@ CVS code -
- If there are more than MAIN_VISIBLE shortcuts available, only - If there are more than MAIN_VISIBLE shortcuts available, only
register clicks on the first MAIN_VISIBLE shortcuts, since register clicks on the first MAIN_VISIBLE shortcuts, since
bottombars() only shows that many shortcuts. (DLR) bottombars() only shows that many shortcuts. (DLR)
nanogetstr()
- Refresh the screen when Ctrl-L is pressed at the statusbar
prompt, as Pico does. (DLR)
reset_cursor() reset_cursor()
- If this is called before any files have been opened, as it can - If this is called before any files have been opened, as it can
be by statusbar(), put the cursor at the top left corner of be by statusbar(), put the cursor at the top left corner of
......
...@@ -1855,6 +1855,9 @@ int nanogetstr(int allowtabs, const char *buf, const char *def, ...@@ -1855,6 +1855,9 @@ int nanogetstr(int allowtabs, const char *buf, const char *def,
} }
break; break;
#endif #endif
case NANO_REFRESH_KEY:
total_refresh();
break;
case NANO_HOME_KEY: case NANO_HOME_KEY:
#ifndef NANO_SMALL #ifndef NANO_SMALL
if (ISSET(SMART_HOME)) { if (ISSET(SMART_HOME)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment