Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
85d6b80b
Commit
85d6b80b
authored
May 22, 1994
by
Richard M. Stallman
Browse files
(mouse-split-window-vertically): Treat scroll bar events just like others.
parent
ed627e08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
lisp/mouse.el
lisp/mouse.el
+1
-4
No files found.
lisp/mouse.el
View file @
85d6b80b
...
...
@@ -89,10 +89,7 @@ This command must be bound to a mouse click."
(
mouse-minibuffer-check
click
)
(
let
((
start
(
event-start
click
)))
(
select-window
(
posn-window
start
))
(
let
((
new-height
(
if
(
eq
(
posn-point
start
)
'vertical-scroll-bar
)
(
scroll-bar-scale
(
posn-col-row
start
)
(
1-
(
window-height
)))
(
1+
(
cdr
(
posn-col-row
(
event-end
click
))))))
(
let
((
new-height
(
1+
(
cdr
(
posn-col-row
(
event-end
click
)))))
(
first-line
window-min-height
)
(
last-line
(
-
(
window-height
)
window-min-height
)))
(
if
(
<
last-line
first-line
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment