Benno Schulenberg
1dbebbcadc
screen: keep the help items aligned in more configurations
...
This fixes https://savannah.gnu.org/bugs/?48987 .
2016-09-03 13:35:19 +02:00
Benno Schulenberg
57d1755d10
tweaks: preen some comments, and reshuffle a few ifdefs
2016-09-03 12:14:08 +02:00
Benno Schulenberg
bace664fbc
startup: allow to rebind the RegExp toggle also in the tiny version
...
This fixes https://savannah.gnu.org/bugs/?48988 .
2016-09-03 11:45:49 +02:00
Benno Schulenberg
acd8809d71
tweaks: use hard-baked keycodes where possible
...
These keycodes have non-rebindable entries in the list of shortcuts, so
they will always be there -- no need for a function call to find them.
2016-09-02 12:04:29 +02:00
Benno Schulenberg
7b7d2bf7c9
tweaks: make tiny nano a teeny bit smaller
2016-09-02 12:01:03 +02:00
Benno Schulenberg
244de605a7
po: update translations and regenerate POT file and PO files
2016-09-01 12:42:50 +02:00
Benno Schulenberg
002652d263
bump version numbers and add a news item for 2.7.0
2016-09-01 12:38:35 +02:00
Benno Schulenberg
08b770d425
files: close a lockfile after reading it
2016-08-30 11:48:35 +02:00
Benno Schulenberg
2dffcf101f
tweaks: fix compilation with --disable-histories
2016-08-30 11:14:19 +02:00
Benno Schulenberg
96fbdfbc7d
input: unset a softmark whenever a character is typed
2016-08-30 10:41:28 +02:00
Benno Schulenberg
272a953889
tweaks: fix compilation when configured with --with-slang
2016-08-30 10:12:02 +02:00
Benno Schulenberg
db310ac9b6
input: ignore the resize "key", to prevent reporting an unbound key
...
In the tiny version it would beep and report an unbound key for every
window resize.
2016-08-30 09:40:51 +02:00
Benno Schulenberg
c11c688420
tweaks: fix compilation with --enable-tiny again
2016-08-30 09:36:49 +02:00
Benno Schulenberg
514cd9a099
update the license text to the preferred version
...
Mentioning "GNU nano" instead of "This program" and referring to the
website instead of to a postal address.
2016-08-29 21:27:16 +02:00
Benno Schulenberg
406e5242a3
update the copyright notices
2016-08-29 21:27:05 +02:00
Benno Schulenberg
c26f58e783
AUTHORS: add Mahyar Abbaspour and Mike Scalora for their contributions
2016-08-29 21:26:57 +02:00
Benno Schulenberg
5ad26f864a
tweaks: adjust indentation after previous change
2016-08-29 13:36:29 +02:00
Benno Schulenberg
e7f39bc248
tweaks: remove an unneeded check, reshuffle some things, add a comment
...
Resetting the cutbuffer is irrelevant when 'allow_funcs' is false or
when in view mode, so do_input() can just return in those cases.
2016-08-29 13:35:35 +02:00
Benno Schulenberg
0242d84218
tweaks: make a call in one place instead of in four different ones
...
And remove a superfluous call.
2016-08-28 21:27:52 +02:00
Benno Schulenberg
7275e11c4f
tweaks: adjust some comments and remove needless asserts
2016-08-28 18:17:10 +02:00
Benno Schulenberg
77d140728d
tweaks: don't bother trimming the prompt again
...
The prompt has already been trimmed in do_prompt() to fit into the
available space.
2016-08-28 17:53:44 +02:00
Benno Schulenberg
4d2ada60f5
tweaks: don't bother avoiding unneeded rewrites of the promptbar
...
Leave the optimization of actual screen writes to ncurses.
2016-08-28 17:37:25 +02:00
Benno Schulenberg
382c9d792d
new feature: allow text selection by holding Shift with the cursor keys
...
Add the keycodes and routines to allow the user to forego setting the
mark explicitly (with M-A / ^6) and instead quickly select a few words
or lines by holding down Shift together with the movement keys.
(Some combinations with Shift are swallowed by some terminal emulators.
To work around some of those, the combinations Shift+Alt+Left/Right work
as Shift+Home/End and Shift+Alt+Up/Down work as Shift+PageUp/PageDown.)
2016-08-28 11:29:28 +02:00
Benno Schulenberg
aeb49a8013
bottombar: only count help items that have a shortcut bound to them
...
This avoids showing a ghost item in, for example, the WriteOut menu
when not using --tempfile and the user does not bind 'discardbuffer'.
2016-08-27 12:22:59 +02:00
Benno Schulenberg
c05c914eee
tweaks: rename three variables
2016-08-27 12:10:18 +02:00
Benno Schulenberg
c19f0c732e
tweaks: simplify the determination of the number of shown help items
2016-08-27 12:06:08 +02:00
Benno Schulenberg
6ad3700a3d
prompt: mouse clicks that moved the cursor need no further processing
...
This fixes https://savannah.gnu.org/bugs/?48917 .
2016-08-27 12:00:08 +02:00
Benno Schulenberg
4f156aa6db
prompt: set up the prepared answer before allowing to change it
...
This fixes https://savannah.gnu.org/bugs/?48916 .
2016-08-27 11:59:57 +02:00
Benno Schulenberg
6142ef87b5
prompt: use angular brackets as continuation mark, as Pico does
...
The $ sign looks too much like an S, and it "obscures" the answer by
being so "massive". The < and > signs are lighter and work better.
2016-08-27 09:34:54 +02:00
Benno Schulenberg
da2fce90bd
tweaks: elide a variable and rename some others
2016-08-27 09:34:42 +02:00
Benno Schulenberg
1e3cffbbd6
prompt: show a trailing $ when the tail of the answer is offscreen
...
This fixes https://savannah.gnu.org/bugs/?48894 .
2016-08-26 21:42:23 +02:00
Benno Schulenberg
92c97c70d4
prompt: leave always at least the last character of the answer visible
...
This fixes https://savannah.gnu.org/bugs/?48912 .
2016-08-26 21:32:07 +02:00
Benno Schulenberg
b77b1391c3
tweaks: improve some indentation and reshuffle a few lines
2016-08-26 12:24:18 +02:00
Benno Schulenberg
7e0c4e5726
tweaks: rename a function and adjust indentation
2016-08-25 20:20:50 +02:00
Benno Schulenberg
50616148b0
prompt: recompose the statusbar text whenever the window size changes
...
This fixes https://savannah.gnu.org/bugs/?48796 .
2016-08-25 20:12:36 +02:00
Benno Schulenberg
3e40e5d4b5
docs: explain how to contribute code
2016-08-25 19:35:14 +02:00
Benno Schulenberg
2f9232a493
tweaks: adjust indentation after previous change
2016-08-25 11:45:38 +02:00
Benno Schulenberg
0d5fbfb91c
tweaks: reshuffle some things, and remove a misplaced comment
2016-08-25 11:45:34 +02:00
Benno Schulenberg
56147434f3
prompt: don't crash when the terminal is less than four columns wide
...
This fixes https://savannah.gnu.org/bugs/?48792 .
2016-08-25 11:45:13 +02:00
Benno Schulenberg
21cb01e543
tweaks: rename two variables, to make some sense
...
And move a statement to a better place.
2016-08-25 11:45:05 +02:00
Benno Schulenberg
ea9aaee8c7
statusbar: leave out the brackets when the message is very long
...
This also prevents the message from spilling into the help lines
when the terminal is less than four columns wide. (Not that one
can read anything then, but it looks better.)
2016-08-25 11:45:01 +02:00
Benno Schulenberg
c22cd03f18
prompt: work around a VTE bug by outdancing an ncurses optimization
...
This fixes https://savannah.gnu.org/bugs/?48852 .
2016-08-25 10:46:28 +02:00
Benno Schulenberg
bd1c5d7c63
moving: make PgUp and PgDown functional also in very flat terminals
...
Even when the edit window consists of just one or two lines, the PageUp
and PageDown functions (^Y and ^V) should continue to move the window.
This fixes https://savannah.gnu.org/bugs/?48805 .
2016-08-21 15:52:24 +02:00
Benno Schulenberg
00b293bf70
tweaks: adjust some braces and indentations
2016-08-21 15:39:00 +02:00
Benno Schulenberg
76a960d73d
screen: continue to function also in a terminal with very few lines
...
This fixes https://savannah.gnu.org/bugs/?48787 .
2016-08-17 10:13:22 +02:00
Benno Schulenberg
97eb0e515f
tweaks: reshuffle some stuff in a more logical order
2016-08-16 19:22:56 +02:00
Benno Schulenberg
68010d931a
startup: don't crash when dying early
...
That is: don't try to look at open files when none are open yet.
2016-08-16 16:59:37 +02:00
Benno Schulenberg
c661506681
tweaks: use a separate function to ask ncurses for keycodes
2016-08-16 12:01:59 +02:00
Benno Schulenberg
0dd2a55284
screen: don't die when the window is narrower than four columns
...
This fixes https://savannah.gnu.org/bugs/?48520 .
2016-08-15 17:25:33 +02:00
Benno Schulenberg
49fc528d88
restore the GNU marker in nano's name
2016-08-14 21:42:37 +02:00