Benno Schulenberg
139f9c2fe5
files: warn more conspicuously when the file on disk has changed
...
This partially adresses https://savannah.gnu.org/bugs/?50998 .
2017-06-29 10:59:51 +02:00
Benno Schulenberg
580fa53aba
tweaks: spell an option correctly in NEWS
2017-06-29 10:59:05 +02:00
David Lawrence Ramsey
2380ee20c5
tweaks: fix a typo in NEWS
2017-06-29 10:56:14 +02:00
Benno Schulenberg
c0a52372f1
docs: drop the cluttering Info-style links from the HTML manual
...
Especially: get rid of the "Up: (dir)" link that points nowhere.
Also, add a horizontal line before the final Table of Contents.
2017-06-27 19:55:12 +02:00
Benno Schulenberg
fd8ce7af8e
po: regenerate POT file and PO files
2017-06-25 11:09:38 +02:00
Benno Schulenberg
c5a0c9b6b2
tweaks: baptize the previous release
2017-06-25 10:59:40 +02:00
Benno Schulenberg
6520aa0079
bump version numbers and add a news item for the 2.8.5 release
2017-06-25 10:37:17 +02:00
Benno Schulenberg
3d8b9895b8
gnulib: update to its current state
2017-06-25 10:05:27 +02:00
Benno Schulenberg
9026e04c73
startup: don't use position history when reading from standard input
2017-06-23 13:44:01 +02:00
Benno Schulenberg
92befae93d
startup: don't mark the buffer as modified when in view mode
2017-06-23 10:43:52 +02:00
Benno Schulenberg
dbbc14e0ac
tweaks: be consistent in the spelling of title bar and status bar
2017-06-23 10:33:19 +02:00
Benno Schulenberg
8b80ec3e1a
startup: allow negative line and column numbers on the command line
...
They can be given at the prompt, so it's better to accept them on the
command line too.
2017-06-23 10:25:12 +02:00
Benno Schulenberg
a71a2f9a0c
startup: don't mark the buffer as modified when nothing was read
2017-06-23 09:51:58 +02:00
Benno Schulenberg
56ce5f2ba8
tweaks: rename a function and a variable, to better match what they do
...
Also improve some comments.
2017-06-23 09:50:48 +02:00
Benno Schulenberg
5ebdd3fe6e
tweaks: reduce the scope of three variables, and rename them besides
2017-06-23 09:00:15 +02:00
Benno Schulenberg
426e6d37c5
startup: don't try placing the cursor when reading standard input failed
...
And rename the function while there anyway.
2017-06-23 08:30:24 +02:00
Benno Schulenberg
4dd9aadf8a
startup: allow positioning the cursor also when reading standard input
...
A recent change (8dffb00f
) removed this ability. This change restores
it, and also allows reading from standard input multiple times -- maybe
not useful, but it works.
2017-06-20 11:22:57 +02:00
Benno Schulenberg
5ecd81bd19
tweaks: rename a variable, and frob a couple of comments
...
Also, conditionalize a statement that is only effective when
multiple file buffers are available.
2017-06-18 21:37:42 +02:00
Benno Schulenberg
b4a955512e
docs: spell "title bar" and "status bar" correctly
2017-06-18 20:09:30 +02:00
Benno Schulenberg
33c7a4ca95
tweaks: adjust indentation after preceding changes
...
Also, shorten two variable names.
2017-06-18 11:29:09 +02:00
Benno Schulenberg
40d34862fd
tweaks: reduce the scope of two variables, and rename them too
...
This reduction is possible since the routine no longer loops when
it encounters a +NUMBER argument.
2017-06-18 11:06:58 +02:00
Benno Schulenberg
bee670424e
tweaks: elide a variable
2017-06-18 11:00:21 +02:00
Benno Schulenberg
8dffb00fd9
startup: always open with the file that was mentioned first
...
Also when a dash is the first "file" mentioned on the command line,
nano should show this buffer at startup and not the next.
This fixes https://savannah.gnu.org/bugs/?51207 .
2017-06-18 10:49:51 +02:00
Benno Schulenberg
403e87c0a0
docs: avoid a double "see" for cross references in the HTML manual
...
This fixes https://savannah.gnu.org/bugs/?51208 .
2017-06-08 16:25:23 +02:00
Benno Schulenberg
942bb39547
startup: don't crash when opening standard input would fail
...
This fixes https://savannah.gnu.org/bugs/?51206 .
2017-06-08 11:28:49 +02:00
Benno Schulenberg
52b7a41ea4
tweaks: elide a function that should not be a separate one
...
Reading from standard input is a purely sequential affair --
no need to split it into two functions.
2017-06-07 21:28:34 +02:00
Benno Schulenberg
6807e06a74
tweaks: frob a few comments, and elide and #ifndef
2017-06-06 22:22:48 +02:00
Benno Schulenberg
84cd0abd6f
tweaks: avoid compiler warning about implicit type
2017-06-04 12:59:05 +02:00
Benno Schulenberg
6a70d2b6e2
tweaks: rename two functions and a variable, and invert its logic
2017-06-04 12:34:21 +02:00
Benno Schulenberg
16482f99b8
tweaks: unglobalize the nodelay_mode variable
2017-06-04 12:15:26 +02:00
Benno Schulenberg
621eb904b3
bindings: in the tiny version exclude word jumping from the prompts
...
In the tiny version, Ctrl+Left and Ctrl+Right are available only
in the editor itself and in the file browser.
This fixes https://savannah.gnu.org/bugs/?51173 .
2017-06-04 11:13:03 +02:00
Benno Schulenberg
84ff9ebb91
display: don't let a SIGCONT write anything to the screen
...
The old praxis of calling total_refresh() upon a SIGCONT was confusing,
because the screen would look as if nano had returned from suspension,
but in fact the shell was still active.
Instead of calling total_refresh(), put a no-op key into ncurses' buffer,
so that, when nano actually does return out of suspension (through 'fg'),
this key will be read and discarded, upon which nano will go sit and wait
for the next key, just before which it calls doupdate(). The latter is
all we need to get the entire screen restored.
This also fixes https://savannah.gnu.org/bugs/?51131 for "tiny".
2017-06-02 21:00:13 +02:00
Benno Schulenberg
a2038a9b2b
input: give an appropriate message when there are too many errors
...
This fixes a secondary part of https://savannah.gnu.org/bugs/?51124 .
2017-05-31 15:11:11 +02:00
Benno Schulenberg
a969adf804
suspension: fake a SIGWINCH when coming back out of the background
...
When receiving a SIGCONT, don't call regenerate_screen() directly
but act as if a SIGWINCH occurred. Also insert a dummy key, and
thus let the relevant input routine redraw the relevant subwindows.
Use KEY_F0 as the dummy key, as both Ncurses and Slang know it, and
it should normally do nothing at all.
This fixes https://savannah.gnu.org/bugs/?51124 .
2017-05-31 14:57:56 +02:00
Benno Schulenberg
59b0f81bfa
display: redraw title bar and edit window only when needed
...
When we are in the file browser, browser_refresh() will take care of
redrawing the title bar and the file list, so total_refresh() should
leave those two subwindows alone in that case.
This fixes https://savannah.gnu.org/bugs/?51147 .
2017-05-31 12:44:02 +02:00
Benno Schulenberg
6ad3d3d6c0
display: show the cursor position also when searching took a while
...
Achieve this by making the suppression flag global, so that we can
just reset it instead of making an improper call of do_cursorpos().
This fixes the secondary part of https://savannah.gnu.org/bugs/?51134 .
2017-05-29 22:15:38 +02:00
Benno Schulenberg
ca70885564
tweaks: don't bother calculating the position when we won't show it
...
Also, remove a useless assert.
2017-05-29 21:51:47 +02:00
Benno Schulenberg
cfa20c3f42
display: don't show the cursor while we are busy calculating its position
...
This fixes https://savannah.gnu.org/bugs/?51134 .
2017-05-29 21:47:38 +02:00
Benno Schulenberg
4781d4d351
tweaks: reshuffle some stuff, to put related things closer together
2017-05-24 10:23:20 +02:00
Benno Schulenberg
ef1a3b08ae
suspension: remove a duplicate setting of the HUP and TERM handler
...
This has been done already during signal_init().
2017-05-24 10:15:42 +02:00
Benno Schulenberg
4063fce6a0
syntax: default: allow leading whitespace before a hash comment
2017-05-23 20:07:15 +02:00
Benno Schulenberg
3db2beefd3
po: regenerate POT file and PO files
2017-05-21 10:57:12 +02:00
Benno Schulenberg
5907f8801b
bump version numbers and add a news item for the 2.8.4 release
2017-05-21 10:21:03 +02:00
Benno Schulenberg
c68398f18f
syntax: php: color "static" again as "function", like it used to be
2017-05-21 10:11:42 +02:00
Benno Schulenberg
d653aeab93
syntax: default: color also hash comments and email addresses
2017-05-19 21:09:15 +02:00
Benno Schulenberg
491e02f532
tweaks: reorder three items in the Info document
2017-05-19 21:09:02 +02:00
Benno Schulenberg
f1a47a2aae
tweaks: reshuffle a few things to reduce duplication
...
It is no longer necessary to assign up() and down() separately for
the help viewer because by now the movement keys have been sorted
in order of ascending stride also in the main menu.
The two string definitions are relocated just to reduce the number
of #ifdefs.
2017-05-19 17:57:39 +02:00
Benno Schulenberg
7b23878b42
tweaks: do actual screen refreshes in a single call, when possible
2017-05-19 16:31:08 +02:00
Benno Schulenberg
5cdadc3eb1
tweaks: avoid an unused-variable warning when using --disable-comment
2017-05-19 11:55:37 +02:00
Benno Schulenberg
8f89e23adb
tweaks: adjust the indentation after the preceding change
...
Also, change two error messages a bit.
2017-05-19 11:47:13 +02:00