Age | Commit message (Collapse) | Author |
|
ok jasper, lum
|
|
"yes" deraadt, input jmc
|
|
hostile to slow terminals.
ok lum
|
|
report.
ok lum, jasper, benno
|
|
ok haesbaert, lum, benno
|
|
ok haesbaert, lum, benno
|
|
sure directory is executable, otherwise we can't list it.
Found by and original diff from RustyBSD.
While here, strlen returns a size_t not an int.
ok florian.
|
|
|
|
ok benno, lum
|
|
ok lum, jasper, benno
|
|
prompt.
input, ok lum@, man bit ok jmc@, ok benno@
|
|
ok jasper@, benno@
|
|
ok florian@
|
|
- split gotoline() into the argument handling part and the part that actually
goes to the specified line number so it can be re-used by revertbuffer()
input/ok florian@ haesbaert@
|
|
versions of emacs.
kjell and jasper@ agree.
|
|
matching.
More goodness from Florian Obser. (and a tweak by me)
|
|
let the error stop mg exiting when C-x C-c is called.
|
|
directory where permissions are ok.
|
|
If you open an already open buffer via C-x C-f, odd things can happen
with the cursor and line counter for that buffer. This diff stops that
behaviour and no regressions viewable.
|
|
experience write errors during C-x C-c (exiting mg). Emacs stops the
exiting process when it encounters problem buffers and lets the user
decide what to do, currently mg continues exiting and the contents of
these buffers are lost. This diff bring mg more into line with emacs.
Review and observations from Sunil Nimmagadda.
|
|
1. If parent directory is read-only, make buffer read-only.
2. If parent doesn't exist; give user a message and create buffer
as readable.
Reviewed by Sunil Nimmagadda.
ok jasper@
|
|
ok jmc@
|
|
"looks good" kjell
|
|
ok beck@, guenther@ who deal with their own ...
ok deraadt@ who deals with his own and sometimes others ...
|
|
Sunil Nimmagadda agrees.
|
|
|
|
|
|
(the command name changed at one point from move-... -> leave-...)
|
|
|
|
|
|
Suggested by jmc@
He will review further.
|
|
|
|
lines) like emacs, instead of middle of page.
|
|
forward and backward line pointers pointing to the same line, causing
mg to spin when asked to split the window. This happens if a directory
is opened via the command line sequentially first, and other windows
need to opened afterwards (for other files).
Since the information within this 'if' statement is updated later for
files and directories I can see no problem with removing this. No
regressions viewable either.
Problem reported by and diff tested by jasper@
|
|
- some whitespace cleanup
ok lum@
|
|
ok lum@
|
|
a name longer than LOGIN_NAME_MAX and also has a tilde at the front
e.g:
$ mg ~01234567890123456789012345678901
mg will give a "Login name too long" instead of opening a new buffer
named ~01234567890123456789012345678901
|
|
|
|
Suggestions from eric@ and Sunil Nimmagadda.
Remarks deraadt@.
|
|
name' as opposed to tname 'Temp name'
|
|
Bit difficult to explain this one. If you have a file open that is 3
or 4 times longer than the length of the viewable window and are at
the bottom of the buffer then scroll up to the top using M-v, your
cursor should remain at the bottom left of the window once you reach
the top of the buffer.
mg behaves like this since the last couple of scrolling diffs I've
committed. However, and as an example, if you start with the window
viewing the top of a buffer and press C-v twice, then C-p four times
then M-v twice to scroll back to the top, you will find your cursor is
NOT at the bottom left of the window. tut tut. This diff makes the
cursor stay at the bottom left, like emacs.
|
|
up with only 1 line of the buffer visible.
|
|
structural limitations in mg, mg doesn't behave exactly the same as
emacs cscope (see the README) but is still very usable.
man page bits reviewed by jmc@, otherwise tested and reviewed by
myself.
|
|
|
|
a buffer.
|
|
scroll upwards, make the cursor behave like emacs and stay at bottom
of window. Tested by mikeb@.
|
|
shouldn't have taken out the second check. Hopefully fix unpredicable
scrolling behaviour seen by mikeb@.
|
|
|
|
opened file(s)/*scratch* with default modes after they are open.
Also, pass buffer (bp) to edinit(), this fixes theo mode from the
command line (mg -f theo).
|
|
improves mg on screens (xterms) with lots of lines. Testing done by
naddy@ and myself.
|